mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
CRIS MMU emulation, by Edgar E. Iglesias.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3362 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
81fdc5f8d2
commit
94cff60a02
2 changed files with 167 additions and 0 deletions
20
target-cris/mmu.h
Normal file
20
target-cris/mmu.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#define CRIS_MMU_ERR_EXEC 0
|
||||
#define CRIS_MMU_ERR_READ 1
|
||||
#define CRIS_MMU_ERR_WRITE 2
|
||||
#define CRIS_MMU_ERR_FLUSH 3
|
||||
|
||||
struct cris_mmu_result_t
|
||||
{
|
||||
uint32_t phy;
|
||||
uint32_t pfn;
|
||||
int g:1;
|
||||
int v:1;
|
||||
int k:1;
|
||||
int w:1;
|
||||
int e:1;
|
||||
int cause_op;
|
||||
};
|
||||
|
||||
int cris_mmu_translate(struct cris_mmu_result_t *res,
|
||||
CPUState *env, uint32_t vaddr,
|
||||
int rw, int is_user);
|
Loading…
Add table
Add a link
Reference in a new issue