meson: target
[qemu.git] / target / moxie / mmu.h
1 #ifndef TARGET_MOXIE_MMU_H
2 #define TARGET_MOXIE_MMU_H
3
4 #define MOXIE_MMU_ERR_EXEC 0
5 #define MOXIE_MMU_ERR_READ 1
6 #define MOXIE_MMU_ERR_WRITE 2
7 #define MOXIE_MMU_ERR_FLUSH 3
8
9 typedef struct {
10 uint32_t phy;
11 uint32_t pfn;
12 int cause_op;
13 } MoxieMMUResult;
14
15 int moxie_mmu_translate(MoxieMMUResult *res,
16 CPUMoxieState *env, uint32_t vaddr,
17 int rw, int mmu_idx);
18
19 #endif