GCSPUSHM, Guarded Control Stack Push

The GCSPUSHM characteristics are:

Purpose

Decrements the current Guarded Control Stack Pointer register by the size of a Guarded Control Stack procedure return record and stores an entry to the Guarded Control Stack.

Configuration

This instruction is present only when FEAT_GCS is implemented. Otherwise, direct accesses to GCSPUSHM are UNDEFINED.

Attributes

GCSPUSHM is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
Input
Input

Input, bits [63:0]

Input value for Guarded Control Stack procedure return record.

Executing GCSPUSHM

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

GCSPUSHM <Xt>

op0op1CRnCRmop2
0b010b0110b01110b01110b000

if !IsFeatureImplemented(FEAT_GCS) then UNDEFINED; elsif PSTATE.EL == EL0 then if (!EL2Enabled() || HCR_EL2.TGE != '1') && GCSCRE0_EL1.PUSHMEn == '0' then AArch64.SystemAccessTrap(EL1, 0x18); elsif EL2Enabled() && HCR_EL2.TGE == '1' && GCSCRE0_EL1.PUSHMEn == '0' then AArch64.SystemAccessTrap(EL2, 0x18); elsif GCSEnabled(EL0) then GCSPUSHM(X[t, 64]); elsif PSTATE.EL == EL1 then if GCSCR_EL1.PUSHMEn == '0' then AArch64.SystemAccessTrap(EL1, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3.FGTEn == '1') && HFGITR_EL2.nGCSPUSHM_EL1 == '0' then AArch64.SystemAccessTrap(EL2, 0x18); elsif GCSEnabled(EL1) then GCSPUSHM(X[t, 64]); elsif PSTATE.EL == EL2 then if GCSCR_EL2.PUSHMEn == '0' then AArch64.SystemAccessTrap(EL2, 0x18); elsif GCSEnabled(EL2) then GCSPUSHM(X[t, 64]); elsif PSTATE.EL == EL3 then if GCSCR_EL3.PUSHMEn == '0' then AArch64.SystemAccessTrap(EL3, 0x18); elsif GCSEnabled(EL3) then GCSPUSHM(X[t, 64]);


15/12/2024 22:27; 5e0a212688c6bd7aee92394b6f5e491b4d0fee1d

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