ARM / OFFLINE REFERENCE

On this page
← Home

CP15DSB

Data Synchronization Barrier System instruction

Performs a Data Synchronization Barrier.

Arm deprecates any use of this System instruction, and strongly recommends that software use the DSB instruction instead.

Configuration

This instruction is present only when FEAT_AA32 is implemented. Otherwise, direct accesses to CP15DSB are UNDEFINED.

Attributes

CP15DSB is a 32-bit System instruction.

Field descriptions

This instruction has no applicable fields.

The value in the register specified by <Rt> is ignored.

Executing CP15DSB

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

MCR{<c>}{<q>} <coproc>, {#}<opc1>, <Rt>, <CRn>, <CRm>{, {#}<opc2>}

(coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1010, opc2 = 0b100)


if !IsFeatureImplemented(FEAT_AA32) then
    Undefined();
elsif PSTATE.EL == EL0 then
    if IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1) && EffectivelyAtEL0NotInHost() && SCTLR_EL1().CP15BEN == '0' then
        Undefined();
    elsif EffectivelyAtEL0InHost() && SCTLR_EL2().CP15BEN == '0' then
        Undefined();
    elsif IsFeatureImplemented(FEAT_AA32EL1) && ELUsingAArch32(EL1) && SCTLR().CP15BEN == '0' then
        Undefined();
    elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && EffectivelyAtEL0NotInHost() && HSTR_EL2().T7 == '1' then
        AArch64_AArch32SystemAccessTrap(EL2, 0x03);
    elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HSTR().T7 == '1' then
        AArch32_TakeHypTrapException(0x03);
    else
        CP15DSB();
    end;
elsif PSTATE.EL == EL1 then
    if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then
        AArch64_AArch32SystemAccessTrap(EL2, 0x03);
    elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then
        AArch32_TakeHypTrapException(0x03);
    elsif SCTLR().CP15BEN == '0' then
        Undefined();
    else
        CP15DSB();
    end;
elsif PSTATE.EL == EL2 then
    if HSCTLR().CP15BEN == '0' then
        Undefined();
    else
        CP15DSB();
    end;
elsif PSTATE.EL == EL3 then
    if SCTLR().CP15BEN == '0' then
        Undefined();
    else
        CP15DSB();
    end;
end;
                

Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.