]> git.proxmox.com Git - mirror_qemu.git/blame - target/moxie/mmu.h
Include hw/boards.h a bit less
[mirror_qemu.git] / target / moxie / mmu.h
CommitLineData
f91005e1
MA
1#ifndef TARGET_MOXIE_MMU_H
2#define TARGET_MOXIE_MMU_H
3
525bd324
AG
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
9typedef struct {
10 uint32_t phy;
11 uint32_t pfn;
525bd324
AG
12 int cause_op;
13} MoxieMMUResult;
14
15int moxie_mmu_translate(MoxieMMUResult *res,
16 CPUMoxieState *env, uint32_t vaddr,
17 int rw, int mmu_idx);
f91005e1
MA
18
19#endif