TriCore
®
 TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07 
User Manual (Volume 2) 3-318
 
RFM
Return From Monitor
Description
Note:The RFM instruction can only be executed in Supervisor mode.
If the Debug mode is disabled (DBGSR.DE==0) execute as a NOP; otherwise return from a breakpoint monitor to 
the task whose saved debug context area is located at DCX (Debug Context Pointer).
The Debug Context Area is a four word subset of the context of the task that took a Debug trap, which is saved 
on entry to the monitor routine. The return PC value is taken from register A[11]. In parallel with the jump to the 
return PC address, the PCXI and PSW, together with the saved A[10] and A[11] values in the Debug Context Area, 
are restored to the original task.
The Debug Trap active bit (DBGTCR.DTA) is cleared.
RFM(SYS)
The Debug Context Pointer (DCX) value is implementation dependent.
if (PSW.IO != 2’b10) then trap (PRIV);
if (DBGSR.DE) then{
PC = {A[11] [31:1], 1’b0};
ICR.IE = PCXI.IE;
ICR.CCPN = PCXI.PCPN;
EA = DCX;
{PCXI, PSW, A[10], A[11]} = M(EA, 4 * word);
DBGTCR.DTA = 0;
}else{
NOP;
}
Status Flags
Examples
rfm
See Also
DEBUG, RFE
C PSW.C is overwritten with the value restored from the Debug Context Area.
V PSW.V is overwritten with the value restored from the Debug Context Area.
SV PSW.SV is overwritten with the value restored from the Debug Context Area.
AV PSW.AV is overwritten with the value restored from the Debug Context Area.
SAV PSW.SAV is overwritten with the value restored from the Debug Context Area.
31
-
28 27
05
H
22 21
-
12 11
-
8 7
0D
H
0