summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-24 20:57:04 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-24 20:57:04 -0800
commit10da41e328f24a6cc252d0c69f2f09c824341a2a (patch)
tree7e589d588abb5bd3afb452f75c9b998c7d651185 /disasm.c
parent44454be952d4c7b2d17fccdad0be8e0b2b693559 (diff)
downloadnasm-10da41e328f24a6cc252d0c69f2f09c824341a2a.tar.gz
nasm-10da41e328f24a6cc252d0c69f2f09c824341a2a.tar.bz2
nasm-10da41e328f24a6cc252d0c69f2f09c824341a2a.zip
HLE: Split the LOCK and REP prefix slots
With HLE, the sequence REP LOCK actually makes sense, so support it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'disasm.c')
-rw-r--r--disasm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/disasm.c b/disasm.c
index 66ea7b0..9bedcc7 100644
--- a/disasm.c
+++ b/disasm.c
@@ -918,14 +918,14 @@ static int matches(const struct itemplate *t, uint8_t *data,
}
if (lock) {
- if (ins->prefixes[PPS_LREP])
+ if (ins->prefixes[PPS_LOCK])
return false;
- ins->prefixes[PPS_LREP] = P_LOCK;
+ ins->prefixes[PPS_LOCK] = P_LOCK;
}
if (drep) {
- if (ins->prefixes[PPS_LREP])
+ if (ins->prefixes[PPS_REP])
return false;
- ins->prefixes[PPS_LREP] = drep;
+ ins->prefixes[PPS_REP] = drep;
}
ins->prefixes[PPS_WAIT] = dwait;
if (!o_used) {