diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2013-12-17 19:42:29 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-12-17 19:42:29 +0000 |
commit | 387f980676aedcc67baddbf5fd1c9169f331f30b (patch) | |
tree | b3d8c6065200582acfaa8b847e730c1a76a8735a /target-arm/cpu.c | |
parent | 68e0a40a5342e798a76ff4c9bf33837e30099ef7 (diff) |
ARM: arm_cpu_reset: make it possible to use high vectors for reset_exc
If hivecs are being used on reset, the CPU should come out of reset at
the hivecs reset vector (0xFFFF0000)
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 3afc69c4f58f60aa2bbee7b91574a4eb414b1c23.1387160489.git.peter.crosthwaite@xilinx.com
[ PC Changes:
* Fixed Grammar error in commit message
* Elaborated commit message.
]
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-arm/cpu.c')
-rw-r--r-- | target-arm/cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 3bce1d6fec..8288c7db39 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -121,6 +121,11 @@ static void arm_cpu_reset(CPUState *s) env->regs[15] = pc & ~1; } } + + if (env->cp15.c1_sys & (1 << 13)) { + env->regs[15] = 0xFFFF0000; + } + env->vfp.xregs[ARM_VFP_FPEXC] = 0; #endif set_flush_to_zero(1, &env->vfp.standard_fp_status); |