]> git.proxmox.com Git - mirror_qemu.git/blame - target-moxie/mmu.h
apic_common: improve readability of apic_reset_common
[mirror_qemu.git] / target-moxie / mmu.h
CommitLineData
525bd324
AG
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
5
6typedef struct {
7 uint32_t phy;
8 uint32_t pfn;
6093d011
SW
9 unsigned g:1;
10 unsigned v:1;
11 unsigned k:1;
12 unsigned w:1;
13 unsigned e:1;
525bd324
AG
14 int cause_op;
15} MoxieMMUResult;
16
17int moxie_mmu_translate(MoxieMMUResult *res,
18 CPUMoxieState *env, uint32_t vaddr,
19 int rw, int mmu_idx);