symbian-qemu-0.9.1-12/qemu-symbian-svp/target-cris/mmu.h
author bugtracker-ml@nttdocomo.com
Thu, 22 Apr 2010 14:59:02 +0100
changeset 62 99ca724f9829
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Fix bug 2182 - Syborg QEMU crashes when using skin + touchscreen device

#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 prot;
	int bf_vec;
};

void cris_mmu_flush_pid(CPUState *env, uint32_t pid);
int cris_mmu_translate(struct cris_mmu_result_t *res,
		       CPUState *env, uint32_t vaddr,
		       int rw, int mmu_idx);