Merge remote-tracking branch 'kraxel/tags/pull-vga-20161205-1' into staging
[qemu.git] / target-moxie / mmu.h
blob284a44d18e2a41312485ff34ab20a3e8e860b831
1 #define MOXIE_MMU_ERR_EXEC 0
2 #define MOXIE_MMU_ERR_READ 1
3 #define MOXIE_MMU_ERR_WRITE 2
4 #define MOXIE_MMU_ERR_FLUSH 3
6 typedef struct {
7 uint32_t phy;
8 uint32_t pfn;
9 int cause_op;
10 } MoxieMMUResult;
12 int moxie_mmu_translate(MoxieMMUResult *res,
13 CPUMoxieState *env, uint32_t vaddr,
14 int rw, int mmu_idx);