Load data to System register (immediate) calculates an address from a base register value and an immediate offset, loads a word from memory, and writes it to the DBGDTRTXint System register. It can use offset, post-indexed, pre-indexed, or unindexed addressing. For information about memory accesses, see Memory accesses.
In an implementation that includes EL2, the permitted LDC access to DBGDTRTXint can be trapped to Hyp mode, meaning that an attempt to execute an LDC instruction in a Non-secure mode other than Hyp mode, that would be permitted in the absence of the Hyp trap controls, generates a Hyp Trap exception. For more information, see HDCR.TDA.
For simplicity, the LDC pseudocode does not show this possible trap to Hyp mode.
It has encodings from the following instruction sets: A32 ( A1 ) and T32 ( T1 ) .
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
!= 1111 | 1 | 1 | 0 | P | U | 0 | W | 1 | != 1111 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | imm8 | |||||||||||||
cond | Rn |
if Rn == '1111' then SEE "LDC (literal)"; if P == '0' && U == '0' && W == '0' then UNDEFINED; constant n = UInt(Rn); constant cp = 14; constant imm32 = ZeroExtend(imm8:'00', 32); constant index = (P == '1'); constant add = (U == '1'); constant wback = (W == '1');
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
1 | 1 | 1 | 0 | 1 | 1 | 0 | P | U | 0 | W | 1 | != 1111 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | imm8 | ||||||||||
Rn |
if Rn == '1111' then SEE "LDC (literal)"; if P == '0' && U == '0' && W == '0' then UNDEFINED; constant n = UInt(Rn); constant cp = 14; constant imm32 = ZeroExtend(imm8:'00', 32); constant index = (P == '1'); constant add = (U == '1'); constant wback = (W == '1');
<c> |
<q> |
<Rn> |
Is the general-purpose base register, encoded in the "Rn" field. If the PC is used, see LDC (literal). |
<option> |
Is an 8-bit immediate, in the range 0 to 255 enclosed in { }, encoded in the "imm8" field. The value of this field is ignored when executing this instruction. |
+/- |
Specifies the offset is added to or subtracted from the base register, defaulting to + if omitted and
encoded in
|
<imm> |
Is the immediate offset used for forming the address, a multiple of 4 in the range 0-1020, defaulting to 0 and encoded in the "imm8" field, as <imm>/4. |
if ConditionPassed() then EncodingSpecificOperations(); constant offset_addr = if add then (R[n] + imm32) else (R[n] - imm32); constant address = if index then offset_addr else R[n]; // System register write to DBGDTRTXint. AArch32.SysRegWriteM(cp, ThisInstr(), address); if wback then R[n] = offset_addr;
If CPSR.DIT is 1, the timing of this instruction is insensitive to the value of the data being loaded or stored.
Internal version only: isa v01_31, pseudocode v2024-03_rel ; Build timestamp: 2024-03-25T10:05
Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.