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 for Guarded Control Stack procedure return record
input for Guarded Control Stack procedure return record

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 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); else 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); else GCSPUSHM(X[t, 64]); elsif PSTATE.EL == EL2 then if GCSCR_EL2.PUSHMEn == '0' then AArch64.SystemAccessTrap(EL2, 0x18); else GCSPUSHM(X[t, 64]); elsif PSTATE.EL == EL3 then if GCSCR_EL3.PUSHMEn == '0' then AArch64.SystemAccessTrap(EL3, 0x18); else GCSPUSHM(X[t, 64]);


26/03/2024 09:49; 67c0ae5282a7629ba0ea0ba7267b43cd4f7939f6

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