ST64BV
Single-copy atomic 64-byte store with status result
This instruction stores eight 64-bit doublewords from
consecutive registers to a memory location, and writes the status result of the store to
a register.
The store starts at register Xt, with the data being formed as
Data<511:0> = X(t+7):X(t+6):X(t+5):X(t+4):X(t+3):X(t+2):X(t+1):Xt.
The data that is stored is atomic and is required to be 64-byte aligned.
It is IMPLEMENTATION DEFINED which memory locations support this instruction.
A memory location that supports ST64BV also supports
ST64BV0.
For more information, including about the memory types accessible and how the accesses are
performed, see Single-copy atomic 64-byte load/store.
1
1
1
1
1
0
0
0
0
0
1
1
0
1
1
0
0
ST64BV <Xs>, <Xt>, [<Xn|SP>]
if !IsFeatureImplemented(FEAT_LS64_V) then UNDEFINED;
if Rt<4:3> == '11' || Rt<0> == '1' then UNDEFINED;
constant integer s = UInt(Rs);
constant integer t = UInt(Rt);
constant integer n = UInt(Rn);
constant boolean tagchecked = n != 31;
<Xs>
Is the 64-bit name of the general-purpose register into which the status result of this instruction is written, encoded in the "Rs" field.
The value returned is:
0xFFFFFFFF_FFFFFFFF
If the memory location accessed does not support this instruction. In this case, the value at the memory location is UNKNOWN.
!= 0xFFFFFFFF_FFFFFFFF
If the memory location accessed does support this instruction. In this case, the peripheral that provides the response defines the returned value and provides information on the state of the memory update at the memory location.
If XZR is used, then the return value is ignored.
<Xt>
Is the 64-bit name of the first general-purpose register to be transferred, encoded in the "Rt" field.
<Xn|SP>
Is the 64-bit name of the general-purpose base register or stack pointer, encoded in the "Rn" field.
CheckST64BVEnabled();
bits(512) data;
bits(64) address;
bits(64) value;
constant AccessDescriptor accdesc = CreateAccDescLS64(MemOp_STORE, tagchecked);
for i = 0 to 7
value = X[t+i, 64];
if BigEndian(accdesc.acctype) then value = BigEndianReverse(value);
data<63+64*i : 64*i> = value;
if n == 31 then
CheckSPAlignment();
address = SP[];
else
address = X[n, 64];
constant bits(64) status = MemStore64BWithRet(address, data, accdesc);
if s != 31 then X[s, 64] = status;