mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
target-tricore: fix rfe not restoring the PC
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
bc72f8aaf2
commit
3446a11181
@ -2458,6 +2458,7 @@ void helper_rfe(CPUTriCoreState *env)
|
||||
if (!cdc_zero(&(env->PSW)) && (env->PSW & MASK_PSW_CDE)) {
|
||||
/* raise MNG trap */
|
||||
}
|
||||
env->PC = env->gpr_a[11] & ~0x1;
|
||||
/* ICR.IE = PCXI.PIE; */
|
||||
env->ICR = (env->ICR & ~MASK_ICR_IE) + ((env->PCXI & MASK_PCXI_PIE) >> 15);
|
||||
/* ICR.CCPN = PCXI.PCPN; */
|
||||
|
Loading…
Reference in New Issue
Block a user