mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
target/arm: Make VTOR register banked for v8M
Make the VTOR register banked if v8M security extensions are enabled. Backports commit 45db7ba681ede57113a67499840e69ee586bcdf2 from qemu
This commit is contained in:
parent
59c6845ada
commit
3e35eee327
|
@ -425,7 +425,7 @@ typedef struct CPUARMState {
|
|||
|
||||
struct {
|
||||
uint32_t other_sp;
|
||||
uint32_t vecbase;
|
||||
uint32_t vecbase[2];
|
||||
uint32_t basepri[2];
|
||||
uint32_t control[2];
|
||||
uint32_t ccr; /* Configuration and Control */
|
||||
|
|
|
@ -5325,7 +5325,7 @@ static uint32_t arm_v7m_load_vector(ARMCPU *cpu)
|
|||
CPUState *cs = CPU(cpu);
|
||||
CPUARMState *env = &cpu->env;
|
||||
MemTxResult result;
|
||||
hwaddr vec = env->v7m.vecbase + env->v7m.exception * 4;
|
||||
hwaddr vec = env->v7m.vecbase[env->v7m.secure] + env->v7m.exception * 4;
|
||||
uint32_t addr;
|
||||
|
||||
addr = address_space_ldl(cs->as, vec,
|
||||
|
|
Loading…
Reference in a new issue