TRBSR_EL1, Trace Buffer Status/syndrome Register
The TRBSR_EL1 characteristics are:
Purpose
Provides syndrome information to software for a trace buffer management event.
Configuration
This register is present only when FEAT_TRBE is implemented. Otherwise, direct accesses to TRBSR_EL1 are UNDEFINED.
Attributes
TRBSR_EL1 is a 64-bit register.
Field descriptions
The TRBSR_EL1 bit assignments are:
Bits [63:32]
Reserved, RES0.
EC, bits [31:26]
Event class. Top-level description of the cause of the trace buffer management event.
EC | Meaning | MSS |
---|---|---|
0b011111 |
Buffer management event for IMPLEMENTATION DEFINED reason. | MSS encoding for Buffer management event for IMPLEMENTATION DEFINED reason |
0b100100 |
Stage 1 Data Abort on write to trace buffer. | MSS encoding for stage 1 or stage 2 Data Aborts on write to trace buffer |
0b100101 |
Stage 2 Data Abort on write to trace buffer. | MSS encoding for stage 1 or stage 2 Data Aborts on write to trace buffer |
0b000000 |
Other trace buffer management event. All trace buffer management events other than those described by the other defined Event class codes. | MSS encoding for other trace buffer management events |
All other values are reserved.
On a Cold reset, this field resets to an architecturally UNKNOWN value.
Bits [25:23]
Reserved, RES0.
IRQ, bit [22]
Maintenance interrupt status.
IRQ | Meaning |
---|---|
0b0 |
Maintenance interrupt is not asserted. |
0b1 |
Maintenance interrupt is asserted. |
On a Cold reset, this field resets to an architecturally UNKNOWN value.
TRG, bit [21]
Triggered.
TRG | Meaning |
---|---|
0b0 |
No Detected Trigger has been observed since this bit was last cleared to zero. |
0b1 |
A Detected Trigger has been observed since this bit was last cleared to zero. |
On a Cold reset, this field resets to an architecturally UNKNOWN value.
WRAP, bit [20]
Wrapped.
WRAP | Meaning |
---|---|
0b0 |
The current write pointer has not wrapped since this bit was last cleared to zero. |
0b1 |
The current write pointer has wrapped since this bit was last cleared to zero. |
For each byte of trace the Trace Buffer Unit Accepts and writes to the trace buffer at the address in the current write pointer, if the current write pointer is equal to the Limit pointer minus one, the current write pointer is wrapped by setting it to the Base pointer, and this bit is set to 0b1.
On a Cold reset, this field resets to an architecturally UNKNOWN value.
Bit [19]
Reserved, RES0.
EA, bit [18]
External Abort.
EA | Meaning |
---|---|
0b0 |
An External Abort has not been asserted. |
0b1 |
An External Abort has been asserted and detected by the Trace Buffer Unit. |
This bit is RES0 if the PE never sets this bit as the result of an External Abort.
On a Cold reset, this field resets to an architecturally UNKNOWN value.
S, bit [17]
Stopped.
S | Meaning |
---|---|
0b0 |
Collection has not been stopped. |
0b1 |
Collection is stopped. |
On a Cold reset, this field resets to an architecturally UNKNOWN value.
Bit [16]
Reserved, RES0.
MSS, bits [15:0]
Management Event Specific Syndrome. Contains syndrome specific to the management event.
The syndrome contents for each management event are described in the following sections.
On a Cold reset, this field resets to an architecturally UNKNOWN value.
MSS encoding for other trace buffer management events
Bits [15:6]
Reserved, RES0.
BSC, bits [5:0]
Trace buffer status code.
BSC | Meaning |
---|---|
0b000000 |
Collection not stopped. |
0b000001 |
Trace buffer filled. Collection stopped because the current write pointer wrapped to the base pointer and the trace buffer mode is Fill mode. |
0b000010 |
Trigger Event. Collection stopped because of a Trigger Event. See TRBTRG_EL1 for more information. |
All other values are reserved.
MSS encoding for Buffer management event for IMPLEMENTATION DEFINED reason15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 IMPLEMENTATION DEFINED
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
IMPLEMENTATION DEFINED |
IMPLEMENTATION DEFINED, bits [15:0]
IMPLEMENTATION DEFINED.
MSS encoding for stage 1 or stage 2 Data Aborts on write to trace buffer
Bits [15:6]
Reserved, RES0.
FSC, bits [5:0]
Fault status code.
FSC | Meaning | Applies when |
---|---|---|
0b000000 |
Address size fault, level 0 of translation or translation table base register. | |
0b000001 |
Address size fault, level 1. | |
0b000010 |
Address size fault, level 2. | |
0b000011 |
Address size fault, level 3. | |
0b000100 |
Translation fault, level 0. | |
0b000101 |
Translation fault, level 1. | |
0b000110 |
Translation fault, level 2. | |
0b000111 |
Translation fault, level 3. | |
0b001001 |
Access flag fault, level 1. | |
0b001010 |
Access flag fault, level 2. | |
0b001011 |
Access flag fault, level 3. | |
0b001000 |
Access flag fault, level 0. | When FEAT_LPA2 is implemented |
0b001100 |
Permission fault, level 0. | When FEAT_LPA2 is implemented |
0b001101 |
Permission fault, level 1. | |
0b001110 |
Permission fault, level 2. | |
0b001111 |
Permission fault, level 3. | |
0b010000 |
Synchronous External abort, not on translation table walk or hardware update of translation table. | |
0b010001 |
Asynchronous External abort. | |
0b010011 |
Synchronous External abort on translation table walk or hardware update of translation table, level -1. | When FEAT_LPA2 is implemented |
0b010100 |
Synchronous External abort on translation table walk or hardware update of translation table, level 0. | |
0b010101 |
Synchronous External abort on translation table walk or hardware update of translation table, level 1. | |
0b010110 |
Synchronous External abort on translation table walk or hardware update of translation table, level 2. | |
0b010111 |
Synchronous External abort on translation table walk or hardware update of translation table, level 3. | |
0b011011 |
Synchronous parity or ECC error on memory access on translation table walk or hardware update of translation table, level -1. | When FEAT_LPA2 is implemented and FEAT_RAS is not implemented |
0b100001 |
Alignment fault. | |
0b101001 |
Address size fault, level -1. | When FEAT_LPA2 is implemented |
0b101011 |
Translation fault, level -1. | When FEAT_LPA2 is implemented |
0b110000 |
TLB conflict abort. | |
0b110001 |
Unsupported atomic hardware update fault. | When FEAT_HAFDBS is implemented |
All other values are reserved.
Accessing the TRBSR_EL1
The PE might ignore a direct write to TRBSR_EL1 if TRBLIMITR_EL1.E == 0b1.
Accesses to this register use the following encodings:
MRS <Xt>, TRBSR_EL1
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b000 | 0b1001 | 0b1011 | 0b011 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then UNDEFINED; elsif Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then UNDEFINED; elsif EL2Enabled() && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HDFGRTR_EL2.TRBSR_EL1 == '1' then AArch64.SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && MDCR_EL2.E2TB == 'x0' then AArch64.SystemAccessTrap(EL2, 0x18); elsif HaveEL(EL3) && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); elsif HaveEL(EL3) && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else return TRBSR_EL1; elsif PSTATE.EL == EL2 then if Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then UNDEFINED; elsif Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); elsif HaveEL(EL3) && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else return TRBSR_EL1; elsif PSTATE.EL == EL3 then return TRBSR_EL1;
MSR TRBSR_EL1, <Xt>
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b000 | 0b1001 | 0b1011 | 0b011 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then UNDEFINED; elsif Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then UNDEFINED; elsif EL2Enabled() && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HDFGWTR_EL2.TRBSR_EL1 == '1' then AArch64.SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && MDCR_EL2.E2TB == 'x0' then AArch64.SystemAccessTrap(EL2, 0x18); elsif HaveEL(EL3) && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); elsif HaveEL(EL3) && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else TRBSR_EL1 = X[t]; elsif PSTATE.EL == EL2 then if Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then UNDEFINED; elsif Halted() && HaveEL(EL3) && EDSCR.SDD == '1' && boolean IMPLEMENTATION_DEFINED "EL3 trap priority when SDD == '1'" && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.NS == '0' && MDCR_EL3.NSTB != '01' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); elsif HaveEL(EL3) && SCR_EL3.NS == '1' && MDCR_EL3.NSTB != '11' then if Halted() && EDSCR.SDD == '1' then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else TRBSR_EL1 = X[t]; elsif PSTATE.EL == EL3 then TRBSR_EL1 = X[t];