Skip to content

Commit

Permalink
target-tricore: fix rfe not restoring the PC
Browse files Browse the repository at this point in the history
Signed-off-by: Bastian Koppelmann <[email protected]>
  • Loading branch information
bkoppelmann committed May 11, 2015
1 parent bc72f8a commit 3446a11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target-tricore/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; */
Expand Down

0 comments on commit 3446a11

Please sign in to comment.