← Home

GCSCRE0_EL1

Guarded Control Stack Control Register (EL0)

Controls the Guarded Control Stack at EL0.

Configuration

This register is present only when FEAT_GCS is implemented. Otherwise, direct accesses to GCSCRE0_EL1 are UNDEFINED.

Attributes

GCSCRE0_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0nTRSTREnPUSHMEnRES0RVCHKENRES0PCRSEL

Bits [63:11]:

Reserved, RES0.

nTR, bit [10]:

Trap GCS register accesses from EL0.

nTRMeaning
0b0

Read accesses to GCSPR_EL0 at EL0 cause a Trap exception.

0b1

This control does not cause any instructions to be trapped.

The reset behavior of this field is:

STREn, bit [9]:

Execution of the following instructions are trapped:

STREnMeaning
0b0

Execution of any of the specified instructions at EL0 cause a GCS exception.

0b1

This control does not cause any instructions to be trapped.

The reset behavior of this field is:

PUSHMEn, bit [8]:

Trap GCSPUSHM instruction.

PUSHMEnMeaning
0b0

Execution of a GCSPUSHM instruction at EL0 causes a Trap exception.

0b1

This control does not cause any instructions to be trapped.

The reset behavior of this field is:

Bits [7:6]:

Reserved, RES0.

RVCHKEN, bit [5]:

Return value check enable.

RVCHKENMeaning
0b0

Return value checking disabled at EL0.

0b1

Return value checking enabled at EL0.

The reset behavior of this field is:

Bits [4:1]:

Reserved, RES0.

PCRSEL, bit [0]:

Guarded Control Stack procedure call return enable selection.

PCRSELMeaning
0b0

Guarded Control Stack at EL0 is not PCR Selected.

0b1

Guarded Control Stack at EL0 is PCR Selected.

The reset behavior of this field is:

Access Instructions

Accesses to this register use the following encodings in the System register encoding space:

MRS <Xt>, GCSCRE0_EL1

(op0 = 0b11, op1 = 0b000, CRn = 0b0010, CRm = 0b0101, op2 = 0b010)

if !IsFeatureImplemented(FEAT_GCS) then UNDEFINED; elsif PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.GCSEn == '0' then UNDEFINED; elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HFGRTR_EL2.nGCS_EL0 == '0' then AArch64.SystemAccessTrap(EL2, 0x18); elsif HaveEL(EL3) && SCR_EL3.GCSEn == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else X[t, 64] = GCSCRE0_EL1; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.GCSEn == '0' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.GCSEn == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else X[t, 64] = GCSCRE0_EL1; elsif PSTATE.EL == EL3 then X[t, 64] = GCSCRE0_EL1;

MSR GCSCRE0_EL1, <Xt>

(op0 = 0b11, op1 = 0b000, CRn = 0b0010, CRm = 0b0101, op2 = 0b010)

if !IsFeatureImplemented(FEAT_GCS) then UNDEFINED; elsif PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.GCSEn == '0' then UNDEFINED; elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HFGWTR_EL2.nGCS_EL0 == '0' then AArch64.SystemAccessTrap(EL2, 0x18); elsif HaveEL(EL3) && SCR_EL3.GCSEn == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else GCSCRE0_EL1 = X[t, 64]; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.GCSEn == '0' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.GCSEn == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else GCSCRE0_EL1 = X[t, 64]; elsif PSTATE.EL == EL3 then GCSCRE0_EL1 = X[t, 64];


Version 2025.09 — Copyright © 2010-2025 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.