Skip to content

Commit 565aba0

Browse files
committed
target/arm: Rebuild hflags after modifying xpsr
Modifying xpsr might change processor state, after which the cached TBFLAGS need to be rebuild.
1 parent b36c0de commit 565aba0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qemu/target/arm/unicorn_arm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ static void v7m_msr_xpsr(CPUARMState *env, uint32_t mask, uint32_t reg,
154154
}
155155

156156
xpsr_write(env, val, xpsrmask);
157+
arm_rebuild_hflags(env);
157158
}
158159

159160
static uc_err read_cp_reg(CPUARMState *env, uc_arm_cp_reg *cp)

0 commit comments

Comments
 (0)