]> git.proxmox.com Git - mirror_qemu.git/blame - target-cris/mmu.h
pc: add compat_props placeholder for 2.0 machine type
[mirror_qemu.git] / target-cris / mmu.h
CommitLineData
94cff60a
TS
1#define CRIS_MMU_ERR_EXEC 0
2#define CRIS_MMU_ERR_READ 1
3#define CRIS_MMU_ERR_WRITE 2
4#define CRIS_MMU_ERR_FLUSH 3
5
2fa73ec8 6struct cris_mmu_result
94cff60a
TS
7{
8 uint32_t phy;
b41f7df0 9 int prot;
786c02f1 10 int bf_vec;
94cff60a
TS
11};
12
a1170bfd
AF
13void cris_mmu_init(CPUCRISState *env);
14void cris_mmu_flush_pid(CPUCRISState *env, uint32_t pid);
2fa73ec8 15int cris_mmu_translate(struct cris_mmu_result *res,
a1170bfd 16 CPUCRISState *env, uint32_t vaddr,
9f5a1fae 17 int rw, int mmu_idx, int debug);