diff --git a/qemu/target/arm/helper.c b/qemu/target/arm/helper.c index e39f0811..fed3db35 100644 --- a/qemu/target/arm/helper.c +++ b/qemu/target/arm/helper.c @@ -5571,7 +5571,7 @@ static void do_v7m_exception_exit(ARMCPU *cpu) env->v7m.cfsr[env->v7m.secure] |= R_V7M_CFSR_INVPC_MASK; // Unicorn: commented out //armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE); - v7m_exception_taken(cpu, type | 0xf0000000); + v7m_exception_taken(cpu, type); qemu_log_mask(CPU_LOG_INT, "...taking UsageFault on existing " "stackframe: failed exception return integrity check\n"); return; @@ -5614,7 +5614,7 @@ static void do_v7m_exception_exit(ARMCPU *cpu) //armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE); env->v7m.cfsr[env->v7m.secure] |= R_V7M_CFSR_INVPC_MASK; v7m_push_stack(cpu); - v7m_exception_taken(cpu, type | 0xf0000000); + v7m_exception_taken(cpu, type); qemu_log_mask(CPU_LOG_INT, "...taking UsageFault on new stackframe: " "failed exception return integrity check\n"); return;