armv7m: R14 should reset to 0xffffffff
commit056f43df9168413f304500b69c33158d66efb7cf
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Jan 2017 15:20:24 +0000 (27 15:20 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Jan 2017 15:29:08 +0000 (27 15:29 +0000)
tree4bc0df0c4f89b55e38504b9225783a954246e11e
parentdc7abe4d65ad39390b2db120f5ad18f8f6576f8b
armv7m: R14 should reset to 0xffffffff

For M profile (unlike A profile) the reset value of R14 is specified
as 0xffffffff.  (The rationale is that this is an illegal exception
return value, so if guest code tries to return to it it will result
in a helpful exception.)

Registers r0 to r12 and the flags are architecturally UNKNOWN on
reset, so we leave those at zero.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1485285380-10565-11-git-send-email-peter.maydell@linaro.org
target/arm/cpu.c