mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
6093d01194
Report from Sparse: target-moxie/mmu.h:9:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:10:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:11:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:12:12: error: dubious one-bit signed bitfield target-moxie/mmu.h:13:12: error: dubious one-bit signed bitfield Cc: Anthony Green <green@moxielogic.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
20 lines
452 B
C
20 lines
452 B
C
#define MOXIE_MMU_ERR_EXEC 0
|
|
#define MOXIE_MMU_ERR_READ 1
|
|
#define MOXIE_MMU_ERR_WRITE 2
|
|
#define MOXIE_MMU_ERR_FLUSH 3
|
|
|
|
typedef struct {
|
|
uint32_t phy;
|
|
uint32_t pfn;
|
|
unsigned g:1;
|
|
unsigned v:1;
|
|
unsigned k:1;
|
|
unsigned w:1;
|
|
unsigned e:1;
|
|
int cause_op;
|
|
} MoxieMMUResult;
|
|
|
|
int moxie_mmu_translate(MoxieMMUResult *res,
|
|
CPUMoxieState *env, uint32_t vaddr,
|
|
int rw, int mmu_idx);
|