Fix TLB access (Jakub Jermar)
[qemu/mini2440.git] / target-cris / mmu.h
blob1b9aff15bc5b43d45475648fda67edd9debcdb74
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
6 struct cris_mmu_result_t
8 uint32_t phy;
9 int prot;
10 int bf_vec;
13 void cris_mmu_flush_pid(CPUState *env, uint32_t pid);
14 int cris_mmu_translate(struct cris_mmu_result_t *res,
15 CPUState *env, uint32_t vaddr,
16 int rw, int mmu_idx);