The CPP RCTX characteristics are:
Cache Prefetch Prediction Restriction by Context applies to all Cache Allocation Resources that predict cache allocations based on information gathered within the target execution context or contexts.
Cache prefetch predictions determined by the actions of code in the target execution context or contexts appearing in program order before the instruction cannot exploitatively control speculative execution occurring after the instruction is complete and synchronized.
This instruction applies to all:
This instruction is guaranteed to be complete following a DSB that covers both read and write behavior on the same PE as executed the original restriction instruction, and a subsequent context synchronization event is required to ensure that the effect of the completion of the instructions is synchronized to the current execution.
This instruction does not require the invalidation of Cache Allocation Resources so long as the behavior described for completion of this instruction is met by the implementation.
On some implementations the instruction is likely to take a significant number of cycles to execute. This instruction is expected to be used very rarely, such as on the roll-over of an ASID or VMID, but should not be used on every context switch.
This instruction is present only when FEAT_SPECRES is implemented. Otherwise, direct accesses to CPP RCTX are UNDEFINED.
CPP RCTX is a 64-bit System instruction.
The CPP RCTX input value bit assignments are:
63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RES0 | GVMID | VMID | |||||||||||||||||||||||||||||
RES0 | NSE | NS | EL | RES0 | GASID | ASID |
Reserved, RES0.
Execution of this instruction applies to all VMIDs or a specified VMID.
GVMID | Meaning |
---|---|
0b0 |
Applies to specified VMID for an EL0 or EL1 target execution context. |
0b1 |
Applies to all VMIDs for an EL0 or EL1 target execution context. |
For target execution contexts other than EL0 and EL1, this field is RES0.
If the instruction is executed at EL0 or EL1, this field has an Effective value of 0.
If EL2 is not implemented or not enabled for the target Security state, this field is RES0.
Only applies when bit[48] is 0 and the target execution context is either:
Otherwise this field is RES0.
When the instruction is executed at EL1, this field is treated as the current VMID.
When the instruction is executed at EL0 and (HCR_EL2.E2H==0 or HCR_EL2.TGE==0), this field is treated as the current VMID.
When the instruction is executed at EL0 and (HCR_EL2.E2H==1 and HCR_EL2.TGE==1), this field is ignored.
If EL2 is not implemented or not enabled for the target Security state, this field is RES0.
Reserved, RES0.
Together with the NS field, selects the Security state.
For a description of the values derived by evaluating NS and NSE together, see CPP_RCTX.NS.
Reserved, RES0.
Together with the NSE field, selects the Security state. Defined values are:
NSE | NS | Meaning |
---|---|---|
0b0 | 0b0 | Secure. |
0b0 | 0b1 | Non-secure. |
0b1 | 0b0 | Root. |
0b1 | 0b1 | Realm. |
When executed in Secure state, the Effective value of NSE is 0.
When executed in Non-secure state, the Effective value of {NSE, NS} is {0, 1}.
When executed in Realm state, the Effective value of {NSE, NS} is {1, 1}.
Security State. Defined values are:
NS | Meaning |
---|---|
0b0 |
Secure state. |
0b1 |
Non-secure state. |
When executed in Non-secure state, the Effective value of NS is 1.
Exception Level. Indicates the Exception level of the target execution context.
EL | Meaning |
---|---|
0b00 |
EL0. |
0b01 |
EL1. |
0b10 |
EL2. |
0b11 |
EL3. |
If the instruction is executed at an Exception level lower than the specified level, this instruction is treated as a NOP.
Reserved, RES0.
Execution of this instruction applies to all ASIDs or a specified ASID.
GASID | Meaning |
---|---|
0b0 |
Applies to specified ASID for an EL0 target execution context. |
0b1 |
Applies to all ASID for an EL0 target execution context. |
For target execution contexts other than EL0, this field is RES0.
If the instruction is executed at EL0, this field has an Effective value of 0.
Only applies for an EL0 target execution context and when bit[16] is 0.
Otherwise, this field is RES0.
When the instruction is executed at EL0, this field is treated as the current ASID.
Accesses to this instruction use the following encodings:
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b01 | 0b011 | 0b0111 | 0b0011 | 0b111 |
if PSTATE.EL == EL0 then if !(EL2Enabled() && HCR_EL2.<E2H,TGE> == '11') && SCTLR_EL1.EnRCTX == '0' then if EL2Enabled() && HCR_EL2.TGE == '1' then AArch64.SystemAccessTrap(EL2, 0x18); else AArch64.SystemAccessTrap(EL1, 0x18); elsif EL2Enabled() && HCR_EL2.<E2H,TGE> != '11' && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HFGITR_EL2.CPPRCTX == '1' then AArch64.SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && HCR_EL2.<E2H,TGE> == '11' && SCTLR_EL2.EnRCTX == '0' then AArch64.SystemAccessTrap(EL2, 0x18); else CPP_RCTX(X[t]); elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2.NV == '1' then AArch64.SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HFGITR_EL2.CPPRCTX == '1' then AArch64.SystemAccessTrap(EL2, 0x18); else CPP_RCTX(X[t]); elsif PSTATE.EL == EL2 then CPP_RCTX(X[t]); elsif PSTATE.EL == EL3 then CPP_RCTX(X[t]);
30/03/2021 20:51; e3551d56dc294a4d55296a6c10544191ada08a8e
Copyright © 2010-2021 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.