~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to target-moxie/mmu.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
6
 
typedef struct {
7
 
    uint32_t phy;
8
 
    uint32_t pfn;
9
 
    int cause_op;
10
 
} MoxieMMUResult;
11
 
 
12
 
int moxie_mmu_translate(MoxieMMUResult *res,
13
 
                        CPUMoxieState *env, uint32_t vaddr,
14
 
                        int rw, int mmu_idx);