Add lfence, mfence and sfence to x86.nz (#5193)

This commit is contained in:
Sylvain Pelissier 2016-06-22 10:29:26 +02:00 committed by radare
parent bc02cdb4b1
commit 50aed82b66
1 changed files with 18 additions and 0 deletions

View File

@ -325,6 +325,24 @@ static int assemble(RAsm *a, RAsmOp *ao, const char *str) {
data[l++] = 0x31;
return l;
}
if (!strcmp (op, "lfence")) {
data[l++] = 0x0f;
data[l++] = 0xae;
data[l++] = 0xe8;
return l;
}
if (!strcmp (op, "mfence")) {
data[l++] = 0x0f;
data[l++] = 0xae;
data[l++] = 0xf0;
return l;
}
if (!strcmp (op, "sfence")) {
data[l++] = 0x0f;
data[l++] = 0xae;
data[l++] = 0xf8;
return l;
}
if (!strncmp (op, "set", 3)) {
#if 0
SETAE/SETNB - Set if Above or Equal / Set if Not Below (386+)