DIT, Data Independent Timing

The DIT characteristics are:

Purpose

Allows access to the Data Independent Timing bit.

Configuration

This register is present only when FEAT_DIT is implemented. Otherwise, direct accesses to DIT are UNDEFINED.

Attributes

DIT is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
RES0DITRES0

Bits [63:25]

Reserved, RES0.

DIT, bit [24]

Data Independent Timing.

DITMeaning
0b0

The architecture makes no statement about the timing properties of any instructions.

0b1

The architecture requires that:

  • The timing of every load and store instruction is insensitive to the value of the data being loaded or stored.

  • For certain data processing instructions, the instruction takes a time which is independent of:

    • The values of the data supplied in any of its registers.

    • The values of the NZCV flags.

  • For certain data processing instructions, the response of the instruction to asynchronous exceptions does not vary based on:

    • The values of the data supplied in any of its registers.

    • The values of the NZCV flags.

The Operational Information section of a data processing instruction description indicates if that instruction is affected by this bit.

Note

The architecture makes no statement about the timing properties when the PSTATE.DIT bit is not set. However, it is likely that many of these instructions have timing that is invariant of the data in many situations.

In particular, Arm strongly recommends that the Armv8.3 pointer authentication instructions do not have their timing dependent on the key value used in the pointer authentication in all cases, regardless of the PSTATE.DIT bit.

The reset behavior of this field is:

Bits [23:0]

Reserved, RES0.

Accessing DIT

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

MRS <Xt>, DIT

op0op1CRnCRmop2
0b110b0110b01000b00100b101

if PSTATE.EL == EL0 then X[t, 64] = Zeros(39):PSTATE.DIT:Zeros(24); elsif PSTATE.EL == EL1 then X[t, 64] = Zeros(39):PSTATE.DIT:Zeros(24); elsif PSTATE.EL == EL2 then X[t, 64] = Zeros(39):PSTATE.DIT:Zeros(24); elsif PSTATE.EL == EL3 then X[t, 64] = Zeros(39):PSTATE.DIT:Zeros(24);

MSR DIT, <Xt>

op0op1CRnCRmop2
0b110b0110b01000b00100b101

if PSTATE.EL == EL0 then PSTATE.DIT = X[t, 64]<24>; elsif PSTATE.EL == EL1 then PSTATE.DIT = X[t, 64]<24>; elsif PSTATE.EL == EL2 then PSTATE.DIT = X[t, 64]<24>; elsif PSTATE.EL == EL3 then PSTATE.DIT = X[t, 64]<24>;

MSR DIT, #<imm>

op0op1CRnop2
0b000b0110b01000b010

26/03/2024 09:49; 67c0ae5282a7629ba0ea0ba7267b43cd4f7939f6

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