From 980f8a0b394b8542e49a8df0db420e9862b8f3d1 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Fri, 5 Sep 2008 17:17:55 +0000 Subject: CRIS: Mask off the cache selection bit after MMU translations. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5170 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-cris/helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'target-cris') diff --git a/target-cris/helper.c b/target-cris/helper.c index a869ee1..4f5ffba 100644 --- a/target-cris/helper.c +++ b/target-cris/helper.c @@ -89,7 +89,11 @@ int cpu_cris_handle_mmu_fault (CPUState *env, target_ulong address, int rw, } else { - phy = res.phy; + /* + * Mask off the cache selection bit. The ETRAX busses do not + * see the top bit. + */ + phy = res.phy & ~0x80000000; prot = res.prot; r = tlb_set_page(env, address, phy, prot, mmu_idx, is_softmmu); } -- cgit v1.1