<?xml version="1.0" ?><?xml-stylesheet type="text/xsl" encoding="UTF-8" href="iform.xsl" version="1.0"?><!DOCTYPE instructionsection  PUBLIC '-//ARM//DTD instructionsection //EN'  'iform-p.dtd'><!-- Copyright (c) 2010-2026 Arm Limited or its affiliates. All rights reserved. --><!-- This document is Non-Confidential. This document may only be used and distributed in accordance with the terms of the agreement entered into by Arm and the party that Arm delivered this document to. --><instructionsection id="DSB_a32" title="DSB -- AArch32" type="instruction">
  <docvars>
    <docvar key="instr-class" value="general"/>
    <docvar key="mnemonic" value="DSB"/>
  </docvars>
  <heading>DSB</heading>
  <desc>
    <brief>
      <para>Data Synchronization Barrier</para>
    </brief>
    <authored>
      <para>Data Synchronization Barrier is a memory barrier that ensures the
completion of memory accesses, see <xref linkend="ARMARM_AA32CHDIJCDJ">Data
Synchronization Barrier (DSB)</xref>.</para>
      <para>An AArch32 DSB instruction does not require the completion of any
AArch64 TLB maintenance instructions, regardless of the nXS qualifier,
appearing in program order before the AArch32 DSB.</para>
    </authored>
    <encodingnotes>
      <para>For more information about the <arm-defined-word>CONSTRAINED UNPREDICTABLE</arm-defined-word> behavior, see <xref linkend="ARMARM_CJAEGDJC">Architectural Constraints on UNPREDICTABLE behaviors</xref>.</para>
    </encodingnotes>
  </desc>
  <alias_list howmany="0"/>
  <classes>
    <classesintro count="2">
      <txt>It has encodings from the following instruction sets:</txt>
      <txt> A32 (</txt>
      <a href="#iclass_a1">A1</a>
      <txt>)</txt>
      <txt> and </txt>
      <txt> T32 (</txt>
      <a href="#iclass_t1">T1</a>
      <txt>)</txt>
      <txt>.</txt>
    </classesintro>
    <iclass name="A1" oneof="2" id="iclass_a1" no_encodings="1" isa="A32">
      <docvars>
        <docvar key="armarmheading" value="A1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="A32"/>
        <docvar key="mnemonic" value="DSB"/>
      </docvars>
      <iclassintro count="1"/>
      <regdiagram form="32" psname="A32.uncond_as.uncondhints.barriers.DSB_A1" tworows="1">
        <box hibit="31" width="4" settings="4">
          <c>1</c>
          <c>1</c>
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="27" width="1" settings="1">
          <c>0</c>
        </box>
        <box hibit="26" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="25" width="5" settings="5">
          <c>0</c>
          <c>1</c>
          <c>0</c>
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="20" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="19" width="12" settings="12">
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
          <c>(0)</c>
          <c>(0)</c>
          <c>(0)</c>
          <c>(0)</c>
        </box>
        <box hibit="7" width="4" name="opcode" usename="1" settings="4" psbits="xxxx">
          <c>0</c>
          <c>1</c>
          <c>0</c>
          <c>0</c>
        </box>
        <box hibit="3" width="4" name="option" usename="1" settings="3" psbits="xxxx" constraint="!= 0x00">
          <c colspan="4">!= 0x00</c>
        </box>
      </regdiagram>
      <encoding name="DSB_A1" oneofinclass="1" oneof="2" label="">
        <docvars>
          <docvar key="armarmheading" value="A1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="A32"/>
          <docvar key="mnemonic" value="DSB"/>
        </docvars>
        <asmtemplate><text>DSB{</text><a hover="For the &quot;A1&quot; variant: see x[Standard assembler syntax fields](Babbefhf). Must be AL or omitted." link="AL_option__2">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  {</text><a hover="Specifies an optional limitation on the barrier operation. Values are:


SY
: Full system is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Can be omitted. This option is referred to as the full system barrier. Encoded as option = 0b1111.

ST
: Full system is the required shareability domain, writes are the required access type, both before and after the barrier instruction. SYST is a synonym for ST. Encoded as option = 0b1110.

LD
: Full system is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b1101.

ISH
: Inner Shareable is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Encoded as option = 0b1011.

ISHST
: Inner Shareable is the required shareability domain, writes are the required access type, both before and after the barrier instruction. Encoded as option = 0b1010.

ISHLD
: Inner Shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b1001.

NSH
: Non-shareable is the required shareability domain, reads and writes are the required access, both before and after the barrier instruction. Encoded as option = 0b0111.

NSHST
: Non-shareable is the required shareability domain, writes are the required access type both before and after the barrier instruction. Encoded as option = 0b0110.

NSHLD
: Non-shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b0101.

OSH
: Outer Shareable is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Encoded as option = 0b0011.

OSHST
: Outer Shareable is the required shareability domain, writes are the required access type, both before and after the barrier instruction. Encoded as option = 0b0010.

OSHLD
: Outer Shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b0001.


For more information on whether an access is before or after a barrier instruction, see x[Data Synchronization Barrier (DSB)](AA32CHDIJCDJ). All other encodings of option are reserved, other than the values 0b0000 and 0b0100. All unsupported and reserved options must execute as a full system DSB operation, but software must not rely on this behavior.

[note]
The value 0b0000 is used to encode SSBB and the value 0b0100 is used to encode PSSBB.

The instruction supports the following alternative &lt;option&gt; values, but Arm recommends that software does not use these alternative values:

  * SH as an alias for ISH.
  * SHST as an alias for ISHST.
  * UN as an alias for NSH.
  * UNST as an alias for NSHST.
[/note]" link="CRm_option__4">&lt;option&gt;</a><text>}</text></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="A32.uncond_as.uncondhints.barriers.DSB_A1" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">// No additional decoding required</pstext></ps>
      </ps_section>
    </iclass>
    <iclass name="T1" oneof="2" id="iclass_t1" no_encodings="1" isa="T32">
      <docvars>
        <docvar key="armarmheading" value="T1"/>
        <docvar key="instr-class" value="general"/>
        <docvar key="isa" value="T32"/>
        <docvar key="mnemonic" value="DSB"/>
      </docvars>
      <iclassintro count="1"/>
      <regdiagram form="16x2" psname="T32.w.bcrtrl.system.DSB_T1" tworows="1">
        <box hibit="31" width="3" settings="3">
          <c>1</c>
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="28" width="2" settings="2">
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="26" width="1" settings="1">
          <c>0</c>
        </box>
        <box hibit="25" width="4" settings="4">
          <c>1</c>
          <c>1</c>
          <c>1</c>
          <c>0</c>
        </box>
        <box hibit="21" width="2" settings="2">
          <c>1</c>
          <c>1</c>
        </box>
        <box hibit="19" width="4" settings="4">
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
        </box>
        <box hibit="15" width="1" settings="1">
          <c>1</c>
        </box>
        <box hibit="14" width="3" settings="3">
          <c>0</c>
          <c>(0)</c>
          <c>0</c>
        </box>
        <box hibit="11" width="1" settings="1">
          <c>(1)</c>
        </box>
        <box hibit="10" width="3" settings="3">
          <c>(1)</c>
          <c>(1)</c>
          <c>(1)</c>
        </box>
        <box hibit="7" width="4" name="opc" usename="1" settings="4" psbits="xxxx">
          <c>0</c>
          <c>1</c>
          <c>0</c>
          <c>0</c>
        </box>
        <box hibit="3" width="4" name="option" usename="1" settings="3" psbits="xxxx" constraint="!= 0x00">
          <c colspan="4">!= 0x00</c>
        </box>
      </regdiagram>
      <encoding name="DSB_T1" oneofinclass="1" oneof="2" label="">
        <docvars>
          <docvar key="armarmheading" value="T1"/>
          <docvar key="instr-class" value="general"/>
          <docvar key="isa" value="T32"/>
          <docvar key="mnemonic" value="DSB"/>
        </docvars>
        <asmtemplate><text>DSB{</text><a hover="For the &quot;T1&quot; variant: see x[Standard assembler syntax fields](Babbefhf)." link="AL_option__6">&lt;c&gt;</a><text>}{</text><a hover="See x[Standard assembler syntax fields](Babbefhf)." link="qw_option">&lt;q&gt;</a><text>}  {</text><a hover="Specifies an optional limitation on the barrier operation. Values are:


SY
: Full system is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Can be omitted. This option is referred to as the full system barrier. Encoded as option = 0b1111.

ST
: Full system is the required shareability domain, writes are the required access type, both before and after the barrier instruction. SYST is a synonym for ST. Encoded as option = 0b1110.

LD
: Full system is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b1101.

ISH
: Inner Shareable is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Encoded as option = 0b1011.

ISHST
: Inner Shareable is the required shareability domain, writes are the required access type, both before and after the barrier instruction. Encoded as option = 0b1010.

ISHLD
: Inner Shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b1001.

NSH
: Non-shareable is the required shareability domain, reads and writes are the required access, both before and after the barrier instruction. Encoded as option = 0b0111.

NSHST
: Non-shareable is the required shareability domain, writes are the required access type both before and after the barrier instruction. Encoded as option = 0b0110.

NSHLD
: Non-shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b0101.

OSH
: Outer Shareable is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Encoded as option = 0b0011.

OSHST
: Outer Shareable is the required shareability domain, writes are the required access type, both before and after the barrier instruction. Encoded as option = 0b0010.

OSHLD
: Outer Shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = 0b0001.


For more information on whether an access is before or after a barrier instruction, see x[Data Synchronization Barrier (DSB)](AA32CHDIJCDJ). All other encodings of option are reserved, other than the values 0b0000 and 0b0100. All unsupported and reserved options must execute as a full system DSB operation, but software must not rely on this behavior.

[note]
The value 0b0000 is used to encode SSBB and the value 0b0100 is used to encode PSSBB.

The instruction supports the following alternative &lt;option&gt; values, but Arm recommends that software does not use these alternative values:

  * SH as an alias for ISH.
  * SHST as an alias for ISHST.
  * UN as an alias for NSH.
  * UNST as an alias for NSHST.
[/note]" link="CRm_option__4">&lt;option&gt;</a><text>}</text></asmtemplate>
      </encoding>
      <ps_section howmany="1">
        <ps name="T32.w.bcrtrl.system.DSB_T1" sections="1" secttype="noheading">
          <pstext mayhavelinks="1" section="Decode" rep_section="decode">// No additional decoding required</pstext></ps>
      </ps_section>
    </iclass>
  </classes>
  <explanations scope="all">
    <explanation enclist="DSB_A1" symboldefcount="1">
      <symbol link="AL_option__2">&lt;c&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;A1&quot; variant: see <xref linkend="Babbefhf">Standard assembler syntax fields</xref>. Must be <value>AL</value> or omitted.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="DSB_T1" symboldefcount="2">
      <symbol link="AL_option__6">&lt;c&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>For the &quot;T1&quot; variant: see <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="DSB_A1, DSB_T1" symboldefcount="1">
      <symbol link="qw_option">&lt;q&gt;</symbol>
      <account encodedin="">
        <intro>
          <para>See <xref linkend="Babbefhf">Standard assembler syntax fields</xref>.</para>
        </intro>
      </account>
    </explanation>
    <explanation enclist="DSB_A1, DSB_T1" symboldefcount="1">
      <symbol link="CRm_option__4">&lt;option&gt;</symbol>
      <account encodedin="option">
        <intro>
          <para>Specifies an optional limitation on the barrier operation. Values are:</para>
          <list type="param">
            <listitem>
              <param>SY</param>
              <content>Full system is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Can be omitted. This option is referred to as the full system barrier. Encoded as option = <binarynumber>0b1111</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>ST</param>
              <content>Full system is the required shareability domain, writes are the required access type, both before and after the barrier instruction. <value>SYST</value> is a synonym for <value>ST</value>. Encoded as option = <binarynumber>0b1110</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>LD</param>
              <content>Full system is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = <binarynumber>0b1101</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>ISH</param>
              <content>Inner Shareable is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Encoded as option = <binarynumber>0b1011</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>ISHST</param>
              <content>Inner Shareable is the required shareability domain, writes are the required access type, both before and after the barrier instruction. Encoded as option = <binarynumber>0b1010</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>ISHLD</param>
              <content>Inner Shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = <binarynumber>0b1001</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>NSH</param>
              <content>Non-shareable is the required shareability domain, reads and writes are the required access, both before and after the barrier instruction. Encoded as option = <binarynumber>0b0111</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>NSHST</param>
              <content>Non-shareable is the required shareability domain, writes are the required access type both before and after the barrier instruction. Encoded as option = <binarynumber>0b0110</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>NSHLD</param>
              <content>Non-shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = <binarynumber>0b0101</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>OSH</param>
              <content>Outer Shareable is the required shareability domain, reads and writes are the required access types, both before and after the barrier instruction. Encoded as option = <binarynumber>0b0011</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>OSHST</param>
              <content>Outer Shareable is the required shareability domain, writes are the required access type, both before and after the barrier instruction. Encoded as option = <binarynumber>0b0010</binarynumber>.</content>
            </listitem>
            <listitem>
              <param>OSHLD</param>
              <content>Outer Shareable is the required shareability domain, reads are the required access type before the barrier instruction, and reads and writes are the required access types after the barrier instruction. Encoded as option = <binarynumber>0b0001</binarynumber>.</content>
            </listitem>
          </list>
          <para>For more information on whether an access is before or after a barrier instruction, see <xref linkend="AA32CHDIJCDJ">Data Synchronization Barrier (DSB)</xref>. All other encodings of option are reserved, other than the values <binarynumber>0b0000</binarynumber> and <binarynumber>0b0100</binarynumber>. All unsupported and reserved options must execute as a full system DSB operation, but software must not rely on this behavior.</para>
          <note>
            <para>The value <binarynumber>0b0000</binarynumber> is used to encode SSBB and the value <binarynumber>0b0100</binarynumber> is used to encode PSSBB.</para>
            <para>The instruction supports the following alternative <syntax>&lt;option&gt;</syntax> values, but Arm recommends that software does not use these alternative values:</para>
            <list type="unordered">
              <listitem>
                <content>
                  <value>SH</value> as an alias for <value>ISH</value>.</content>
              </listitem>
              <listitem>
                <content>
                  <value>SHST</value> as an alias for <value>ISHST</value>.</content>
              </listitem>
              <listitem>
                <content>
                  <value>UN</value> as an alias for <value>NSH</value>.</content>
              </listitem>
              <listitem>
                <content>
                  <value>UNST</value> as an alias for <value>NSHST</value>.</content>
              </listitem>
            </list>
          </note>
        </intro>
      </account>
      <arch_variants>
        <arch_variant name="ARMv8.0-A"/>
      </arch_variants>
    </explanation>
  </explanations>
  <ps_section howmany="1">
    <ps name="A32.uncond_as.uncondhints.barriers.DSB_A1" sections="1" secttype="Operation">
      <pstext mayhavelinks="1" section="Execute" rep_section="execute">if <a link="func_ConditionPassed_0" file="shared_pseudocode.xml">ConditionPassed</a>() then
    EncodingSpecificOperations();
    var nXS : boolean;
    if IsFeatureImplemented(FEAT_XS) then
        nXS = (<a link="global_PSTATE" file="shared_pseudocode.xml">PSTATE</a>.EL IN {<a link="global_EL0" file="shared_pseudocode.xml">EL0</a>, <a link="global_EL1" file="shared_pseudocode.xml">EL1</a>} &amp;&amp; !<a link="func_ELUsingAArch32_1" file="shared_pseudocode.xml">ELUsingAArch32</a>(<a link="global_EL2" file="shared_pseudocode.xml">EL2</a>) &amp;&amp;
               <a link="func_IsHCRXEL2Enabled_0" file="shared_pseudocode.xml">IsHCRXEL2Enabled</a>() &amp;&amp; HCRX_EL2().FnXS == '1');
    else
        nXS = FALSE;
    end;
    var scope : <a link="type_MBMaintenanceScope" file="shared_pseudocode.xml">MBMaintenanceScope</a>;
    var types : <a link="type_MBReqTypes" file="shared_pseudocode.xml">MBReqTypes</a>;
    case option[1:0] of
        when '00' =&gt;
            types = <a link="enum_MBReqTypes_All" file="shared_pseudocode.xml">MBReqTypes_All</a>;
            scope = <a link="enum_MBMaintenanceScope_OuterShareable" file="shared_pseudocode.xml">MBMaintenanceScope_OuterShareable</a>;
        when '01' =&gt;
            types = <a link="enum_MBReqTypes_Reads" file="shared_pseudocode.xml">MBReqTypes_Reads</a>;
            scope = <a link="enum_MBMaintenanceScope_None" file="shared_pseudocode.xml">MBMaintenanceScope_None</a>;
        when '10' =&gt;
            types = <a link="enum_MBReqTypes_Writes" file="shared_pseudocode.xml">MBReqTypes_Writes</a>;
            scope = <a link="enum_MBMaintenanceScope_None" file="shared_pseudocode.xml">MBMaintenanceScope_None</a>;
        when '11' =&gt;
            types = <a link="enum_MBReqTypes_All" file="shared_pseudocode.xml">MBReqTypes_All</a>;
            case option[3:2] of
                when '00' =&gt; scope = <a link="enum_MBMaintenanceScope_OuterShareable" file="shared_pseudocode.xml">MBMaintenanceScope_OuterShareable</a>;
                when '01' =&gt; scope = <a link="enum_MBMaintenanceScope_Nonshareable" file="shared_pseudocode.xml">MBMaintenanceScope_Nonshareable</a>;
                when '10' =&gt; scope = <a link="enum_MBMaintenanceScope_InnerShareable" file="shared_pseudocode.xml">MBMaintenanceScope_InnerShareable</a>;
                when '11' =&gt; scope = <a link="enum_MBMaintenanceScope_OuterShareable" file="shared_pseudocode.xml">MBMaintenanceScope_OuterShareable</a>;
            end;
    end;

    DataSynchronizationBarrier(scope, types, nXS);
end;</pstext></ps>
  </ps_section>
  <timestamp>2026-03-26 20:27:25</timestamp>
  <commit_id>2026-03_rel</commit_id>
</instructionsection>