mirror of https://gitee.com/openkylin/qemu.git
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