mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
hw/intc/armv7m_nvic: Implement SCR
We were previously making the system control register (SCR) just RAZ/WI. Although we don't implement the functionality this register controls, we should at least provide the state, including the banked state for v8M. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180209165810.6668-7-peter.maydell@linaro.org
This commit is contained in:
parent
43bbce7fbe
commit
24ac0fb129
3 changed files with 27 additions and 4 deletions
|
@ -497,6 +497,7 @@ typedef struct CPUARMState {
|
|||
uint32_t aircr; /* only holds r/w state if security extn implemented */
|
||||
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];
|
||||
} v7m;
|
||||
|
||||
/* Information associated with an exception about to be taken:
|
||||
|
@ -1258,6 +1259,12 @@ FIELD(V7M_CCR, STKALIGN, 9, 1)
|
|||
FIELD(V7M_CCR, DC, 16, 1)
|
||||
FIELD(V7M_CCR, IC, 17, 1)
|
||||
|
||||
/* V7M SCR bits */
|
||||
FIELD(V7M_SCR, SLEEPONEXIT, 1, 1)
|
||||
FIELD(V7M_SCR, SLEEPDEEP, 2, 1)
|
||||
FIELD(V7M_SCR, SLEEPDEEPS, 3, 1)
|
||||
FIELD(V7M_SCR, SEVONPEND, 4, 1)
|
||||
|
||||
/* V7M AIRCR bits */
|
||||
FIELD(V7M_AIRCR, VECTRESET, 0, 1)
|
||||
FIELD(V7M_AIRCR, VECTCLRACTIVE, 1, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue