diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-24 20:57:04 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-24 20:57:04 -0800 |
commit | 10da41e328f24a6cc252d0c69f2f09c824341a2a (patch) | |
tree | 7e589d588abb5bd3afb452f75c9b998c7d651185 /disasm.c | |
parent | 44454be952d4c7b2d17fccdad0be8e0b2b693559 (diff) | |
download | nasm-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |