mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 13:25:31 +00:00
armv7m: set CFSR.UNDEFINSTR on undefined instructions
When we take an exception for an undefined instruction, set the appropriate CFSR bit. Backports commit 81dd9648c69bb89afdd6f4bb3ed6f3efdac96524 from qemu
This commit is contained in:
parent
2297b8134b
commit
eaa080e232
|
@ -5443,6 +5443,7 @@ void arm_v7m_cpu_do_interrupt(CPUState *cs)
|
|||
switch (cs->exception_index) {
|
||||
case EXCP_UDEF:
|
||||
//armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE);
|
||||
env->v7m.cfsr |= R_V7M_CFSR_UNDEFINSTR_MASK;
|
||||
return;
|
||||
case EXCP_SWI:
|
||||
/* The PC already points to the next instruction. */
|
||||
|
|
Loading…
Reference in a new issue