Statistics
| Branch: | Revision:

root / target-cris / mmu.h @ 94cff60a

History | View | Annotate | Download (368 Bytes)

1 94cff60a ths
#define CRIS_MMU_ERR_EXEC  0
2 94cff60a ths
#define CRIS_MMU_ERR_READ  1
3 94cff60a ths
#define CRIS_MMU_ERR_WRITE 2
4 94cff60a ths
#define CRIS_MMU_ERR_FLUSH 3
5 94cff60a ths
6 94cff60a ths
struct cris_mmu_result_t
7 94cff60a ths
{
8 94cff60a ths
        uint32_t phy;
9 94cff60a ths
        uint32_t pfn;
10 94cff60a ths
        int g:1;
11 94cff60a ths
        int v:1;
12 94cff60a ths
        int k:1;
13 94cff60a ths
        int w:1;
14 94cff60a ths
        int e:1;
15 94cff60a ths
        int cause_op;
16 94cff60a ths
};
17 94cff60a ths
18 94cff60a ths
int cris_mmu_translate(struct cris_mmu_result_t *res,
19 94cff60a ths
                       CPUState *env, uint32_t vaddr,
20 94cff60a ths
                       int rw, int is_user);