summaryrefslogtreecommitdiffstats
path: root/target-microblaze/helper.c
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@xilinx.com>2015-06-18 21:16:42 -0700
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>2015-06-21 17:20:16 +1000
commit6fad9e986b82c7c7ed7cfa0cc3ee38b3510a5432 (patch)
tree92fbcfa74647cb4a7da90c95047da734ffb171f9 /target-microblaze/helper.c
parent72e38754853443830152a3cfe586db1d9b15e8fe (diff)
downloadhqemu-6fad9e986b82c7c7ed7cfa0cc3ee38b3510a5432.zip
hqemu-6fad9e986b82c7c7ed7cfa0cc3ee38b3510a5432.tar.gz
target-microblaze: Convert pvr-full to a CPU property
Originally the pvr-full PVR bits were manually set for each machine. This is a hassle and difficult to read, instead set them based on the CPU properties. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target-microblaze/helper.c')
-rw-r--r--target-microblaze/helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-microblaze/helper.c b/target-microblaze/helper.c
index 5156c12..8257b0e 100644
--- a/target-microblaze/helper.c
+++ b/target-microblaze/helper.c
@@ -58,8 +58,8 @@ int mb_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw,
mmu_available = 0;
if (cpu->cfg.use_mmu) {
mmu_available = 1;
- if ((env->pvr.regs[0] & PVR0_PVR_FULL_MASK)
- && (env->pvr.regs[11] & PVR11_USE_MMU) != PVR11_USE_MMU) {
+ if ((cpu->cfg.pvr == C_PVR_FULL) &&
+ (env->pvr.regs[11] & PVR11_USE_MMU) != PVR11_USE_MMU) {
mmu_available = 0;
}
}
OpenPOWER on IntegriCloud