This is a collection of Intel®’ IA32® Software Developer's Manuals (URL of the day) and AMD' AMD64 Architecture Programmer's Manual together with the related specifications, application notes, white papers, and change logs. The collection aims to keep all available revisions. It was originally created by Michal Necasek, see OS/2 Museum.

If you have a public document, related to the IA32® specifications and missing from the collection, please mail it to me. The content of this URL and all sub-ULRs is available for convenient bulk download by rsync x86docs password "" (empty).

GCSCRE0_EL1

GCSCRE0_EL1, Guarded Control Stack Control Register (EL0)

The GCSCRE0_EL1 characteristics are:

Purpose

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:

Accessing GCSCRE0_EL1

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

MRS <Xt>, GCSCRE0_EL1

op0op1CRnCRmop2
0b110b0000b00100b01010b010

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); end; else X{64}(t) = GCSCRE0_EL1(); end; 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); end; else X{64}(t) = GCSCRE0_EL1(); end; elsif PSTATE.EL == EL3 then X{64}(t) = GCSCRE0_EL1(); end;

MSR GCSCRE0_EL1, <Xt>

op0op1CRnCRmop2
0b110b0000b00100b01010b010

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); end; else GCSCRE0_EL1() = X{64}(t); end; 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); end; else GCSCRE0_EL1() = X{64}(t); end; elsif PSTATE.EL == EL3 then GCSCRE0_EL1() = X{64}(t); end;


2026-03-12 12:23:09, 2025-09_rel_asl1

Copyright © 2010-2025 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.