dcps2

Debug Change PE State to EL2

DCPS2 {#<imm>}

Switch to Exception Level 2 (Debug).

Details

Debug instruction that changes the PE to Exception Level 2. This is a privileged instruction typically used in debug state to transition exception levels. The optional immediate provides a 16-bit debug context identifier. Requires debug permissions and is AArch64-only.

Pseudocode Operation

SPSR_EL2 ← PSTATE
PSTATE.EL ← '10'
PC ← DLR_EL0

Example

DCPS2

Encoding

Binary Layout
11010100
101
imm16
000
10
 
Format Exception
Opcode 0xD4A00002
Extension System

Operands

  • imm
    ID

Reference (Arm A64 ISA)

Instruction Forms

Encoding Instruction ISA Bit pattern
0xD4A00002 DCPS2 {#<imm>} A64 11010100 | 101 | imm16 | 000 | 10

Description

Debug Change PE State to EL2, when executed in Debug state: The target exception level of a DCPS2 instruction is: When the target Exception level of a DCPS2 instruction is ELx, on executing this instruction: This instruction is UNDEFINED at the following exception levels: This instruction is always UNDEFINED in Non-debug state. For more information on the operation of the DCPS<n> instructions, see DCPS.

Operation

if !Halted() then UNDEFINED;
DCPSInstruction(LL);