mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
nvic: Implement AIRCR changes for v8M
The Application Interrupt and Reset Control Register has some changes for v8M: * new bits SYSRESETREQS, BFHFNMINS and PRIS: these all have real state if the security extension is implemented and otherwise are constant * the PRIGROUP field is banked between security states * non-secure code can be blocked from using the SYSRESET bit to reset the system if SYSRESETREQS is set Implement the new state and the changes to register read and write. For the moment we ignore the effects of the secure PRIGROUP. We will implement the effects of PRIS and BFHFNMIS later. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 1505240046-11454-6-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
5255fcf8e4
commit
3b2e934463
4 changed files with 59 additions and 12 deletions
|
@ -55,7 +55,8 @@ typedef struct NVICState {
|
|||
* Entries in sec_vectors[] for non-banked exception numbers are unused.
|
||||
*/
|
||||
VecInfo sec_vectors[NVIC_INTERNAL_VECTORS];
|
||||
uint32_t prigroup;
|
||||
/* The PRIGROUP field in AIRCR is banked */
|
||||
uint32_t prigroup[M_REG_NUM_BANKS];
|
||||
|
||||
/* The following fields are all cached state that can be recalculated
|
||||
* from the vectors[] and sec_vectors[] arrays and the prigroup field:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue