diff options
author | Peter Maydell | 2017-06-02 12:51:47 +0200 |
---|---|---|
committer | Peter Maydell | 2017-06-02 12:51:47 +0200 |
commit | 452a095526a0537f16c271516a2200877a272ea8 (patch) | |
tree | 501abc921a7882788e876e67f47c5ec46cfb5ce3 /target/arm/cpu.h | |
parent | arm: Use different ARMMMUIdx values for M profile (diff) | |
download | qemu-452a095526a0537f16c271516a2200877a272ea8.tar.gz qemu-452a095526a0537f16c271516a2200877a272ea8.tar.xz qemu-452a095526a0537f16c271516a2200877a272ea8.zip |
arm: Clean up handling of no-MPU PMSA CPUs
ARM CPUs come in two flavours:
* proper MMU ("VMSA")
* only an MPU ("PMSA")
For PMSA, the MPU may be implemented, or not (in which case there
is default "always acts the same" behaviour, but it isn't guest
programmable).
QEMU is a bit confused about how we indicate this: we have an
ARM_FEATURE_MPU, but it's not clear whether this indicates
"PMSA, not VMSA" or "PMSA and MPU present" , and sometimes we
use it for one purpose and sometimes the other.
Currently trying to implement a PMSA-without-MPU core won't
work correctly because we turn off the ARM_FEATURE_MPU bit
and then a lot of things which should still exist get
turned off too.
As the first step in cleaning this up, rename the feature
bit to ARM_FEATURE_PMSA, which indicates a PMSA CPU (with
or without MPU).
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1493122030-32191-5-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index cadec09ac4..cb1d696ce8 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1181,7 +1181,7 @@ enum arm_features { ARM_FEATURE_V6K, ARM_FEATURE_V7, ARM_FEATURE_THUMB2, - ARM_FEATURE_MPU, /* Only has Memory Protection Unit, not full MMU. */ + ARM_FEATURE_PMSA, /* no MMU; may have Memory Protection Unit */ ARM_FEATURE_VFP3, ARM_FEATURE_VFP_FP16, ARM_FEATURE_NEON, |