blob: 459d809f7d8d13f2fe6e17a0c9d25189f30b7b2c [file] [log] [blame]
ths94cff602007-10-08 13:11:58 +00001#define CRIS_MMU_ERR_EXEC 0
2#define CRIS_MMU_ERR_READ 1
3#define CRIS_MMU_ERR_WRITE 2
4#define CRIS_MMU_ERR_FLUSH 3
5
Edgar E. Iglesias2fa73ec2009-04-25 15:51:53 +02006struct cris_mmu_result
ths94cff602007-10-08 13:11:58 +00007{
8 uint32_t phy;
edgar_iglb41f7df2008-05-02 22:16:17 +00009 int prot;
edgar_igl786c02f2008-03-14 01:08:09 +000010 int bf_vec;
ths94cff602007-10-08 13:11:58 +000011};
12
edgar_igl52819662009-01-26 22:21:30 +000013void cris_mmu_init(CPUState *env);
edgar_iglcf1d97f2008-05-13 10:59:14 +000014void cris_mmu_flush_pid(CPUState *env, uint32_t pid);
Edgar E. Iglesias2fa73ec2009-04-25 15:51:53 +020015int cris_mmu_translate(struct cris_mmu_result *res,
ths94cff602007-10-08 13:11:58 +000016 CPUState *env, uint32_t vaddr,
Edgar E. Iglesias9f5a1fa2010-07-05 11:39:04 +020017 int rw, int mmu_idx, int debug);