mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target/arm: Implement v8M MSPLIM and PSPLIM registers
The v8M architecture includes hardware support for enforcing stack pointer limits. We don't implement this behaviour yet, but provide the MSPLIM and PSPLIM stack pointer limit registers as reads-as-written, so that when we do implement the checks in future this won't break guest migration. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180209165810.6668-12-peter.maydell@linaro.org
This commit is contained in:
parent
e1e7cbc904
commit
57bb315681
3 changed files with 69 additions and 0 deletions
|
@ -498,6 +498,8 @@ typedef struct CPUARMState {
|
|||
uint32_t secure; /* Is CPU in Secure state? (not guest visible) */
|
||||
uint32_t csselr[M_REG_NUM_BANKS];
|
||||
uint32_t scr[M_REG_NUM_BANKS];
|
||||
uint32_t msplim[M_REG_NUM_BANKS];
|
||||
uint32_t psplim[M_REG_NUM_BANKS];
|
||||
} v7m;
|
||||
|
||||
/* Information associated with an exception about to be taken:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue