diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-07-27 11:59:08 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-07-31 13:09:52 +0100 |
commit | 8531eb4f614a60e6582d4832b15eee09f7d27874 (patch) | |
tree | 64f9633ddee4973ae9674cabafa7c6f3472091c9 /target/arm/machine.c | |
parent | bf446a11dfb17ae7d8ed2b61a2444804eb458075 (diff) | |
download | qemu-8531eb4f614a60e6582d4832b15eee09f7d27874.zip qemu-8531eb4f614a60e6582d4832b15eee09f7d27874.tar.gz qemu-8531eb4f614a60e6582d4832b15eee09f7d27874.tar.bz2 |
target/arm: Rename cp15.c6_rgnr to pmsav7.rnr
Almost all of the PMSAv7 state is in the pmsav7 substruct of
the ARM CPU state structure. The exception is the region
number register, which is in cp15.c6_rgnr. This exception
is a bit odd for M profile, which otherwise generally does
not store state in the cp15 substruct.
Rename cp15.c6_rgnr to pmsav7.rnr accordingly.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1501153150-19984-4-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target/arm/machine.c')
-rw-r--r-- | target/arm/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/machine.c b/target/arm/machine.c index 1a40469..93c1a78 100644 --- a/target/arm/machine.c +++ b/target/arm/machine.c @@ -151,7 +151,7 @@ static bool pmsav7_rgnr_vmstate_validate(void *opaque, int version_id) { ARMCPU *cpu = opaque; - return cpu->env.cp15.c6_rgnr < cpu->pmsav7_dregion; + return cpu->env.pmsav7.rnr < cpu->pmsav7_dregion; } static const VMStateDescription vmstate_pmsav7 = { |