diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-02-20 10:35:51 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-02-20 10:35:51 +0000 |
commit | 76e3e1bcaefe0da394f328854cb72f9449f23732 (patch) | |
tree | a93064e9d926153d9c297d19a1848abfe1001f68 /target-arm/cpu.c | |
parent | 83e9a4aec9ffcbcb86ca9d39d2c5aae8176411fb (diff) | |
download | qemu-76e3e1bcaefe0da394f328854cb72f9449f23732.tar.gz qemu-76e3e1bcaefe0da394f328854cb72f9449f23732.tar.bz2 qemu-76e3e1bcaefe0da394f328854cb72f9449f23732.zip |
target-arm: Define names for SCTLR bits
The SCTLR is full of bits for enabling or disabling various things, and so
there are many places in the code which check if certain bits are set.
Define some named constants for the SCTLR bits so these checks are easier
to read.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/cpu.c')
-rw-r--r-- | target-arm/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 45ad7f0260..82943428bc 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -128,7 +128,7 @@ static void arm_cpu_reset(CPUState *s) } } - if (env->cp15.c1_sys & (1 << 13)) { + if (env->cp15.c1_sys & SCTLR_V) { env->regs[15] = 0xFFFF0000; } |