diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-29 22:21:45 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-29 22:21:45 +0000 |
commit | 330c4d61a65801b994e7498163cec3ca74c4ece4 (patch) | |
tree | 711fd6827e3050a30f39b834c8c20cd540c30d66 /target-arm | |
parent | ae5d8053a124508650140fc72cccf9f2bd131871 (diff) | |
download | qemu-330c4d61a65801b994e7498163cec3ca74c4ece4.zip |
Fix XScale MMU's extended small pages.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3093 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm')
-rw-r--r-- | target-arm/helper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c index 260a04aa06..8132d0caf4 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -516,16 +516,16 @@ static int get_phys_addr(CPUState *env, uint32_t address, int access_type, ap = (desc >> (4 + ((address >> 13) & 6))) & 3; break; case 3: /* 1k page. */ - if (arm_feature(env, ARM_FEATURE_XSCALE)) - phys_addr = (desc & 0xfffff000) | (address & 0xfff); - else { - if (type == 1) { + if (type == 1) { + if (arm_feature(env, ARM_FEATURE_XSCALE)) + phys_addr = (desc & 0xfffff000) | (address & 0xfff); + else { /* Page translation fault. */ code = 7; goto do_fault; } + } else phys_addr = (desc & 0xfffffc00) | (address & 0x3ff); - } ap = (desc >> 4) & 3; break; default: |