summaryrefslogtreecommitdiff
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-04 23:26:24 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-04 23:26:24 +0000
commitac9eb0731ad123f8789005978500ac67026188c2 (patch)
tree46196d5fcd9eba3ecb37b13a401fe4dab9be070d /target-ppc/helper.c
parent9a64fbe4d89751524be0954f87dd514083295e99 (diff)
suppressed explicit access type and use the exception routine to infer it from the micro operation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@529 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r--target-ppc/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 272dc95887..1520d6c821 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -512,7 +512,7 @@ int cpu_ppc_handle_mmu_fault (CPUState *env, uint32_t address, int rw,
// printf("%s 0\n", __func__);
is_user = flags & 0x01;
- access_type = flags & ~0x01;
+ access_type = env->access_type;
if (env->user_mode_only) {
/* user mode only emulation */
ret = -1;