cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

mmu.h (549B)


      1#ifndef TARGET_CRIS_MMU_H
      2#define TARGET_CRIS_MMU_H
      3
      4#define CRIS_MMU_ERR_EXEC  0
      5#define CRIS_MMU_ERR_READ  1
      6#define CRIS_MMU_ERR_WRITE 2
      7#define CRIS_MMU_ERR_FLUSH 3
      8
      9struct cris_mmu_result
     10{
     11        uint32_t phy;
     12        int prot;
     13        int bf_vec;
     14};
     15
     16void cris_mmu_init(CPUCRISState *env);
     17void cris_mmu_flush_pid(CPUCRISState *env, uint32_t pid);
     18int cris_mmu_translate(struct cris_mmu_result *res,
     19                       CPUCRISState *env, uint32_t vaddr,
     20                       MMUAccessType access_type, int mmu_idx, int debug);
     21
     22#endif