copy hasExclusiveAccess pattern into ARM STREX instruction to be the same as the THUMB and STREXn instructions

This commit is contained in:
Simeon Pilgrim
2020-06-19 09:38:04 +12:00
parent eaf6ab250d
commit 632a768cf3

View File

@@ -5386,8 +5386,12 @@ armEndianNess: "BE" is c0031=0xf1010200 { export 1:1; }
:strex^COND Rd,Rm,[Rn] is $(AMODE) & COND & c2027=0x18 & c0411=0xf9 & Rn & Rd & Rm
{
build COND;
*Rn = Rm;
local tmp = Rn;
access:1 = hasExclusiveAccess(tmp);
Rd = 1;
if (!access) goto inst_next;
Rd = 0;
*tmp = Rm;
}
@endif # VERSION_6