summaryrefslogtreecommitdiff
path: root/parser.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 /parser.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 'parser.c')
-rw-r--r--parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 37d7138..3a592fe 100644
--- a/parser.c
+++ b/parser.c
@@ -81,12 +81,13 @@ static int prefix_slot(int prefix)
case R_GS:
return PPS_SEG;
case P_LOCK:
+ return PPS_LOCK;
case P_REP:
case P_REPE:
case P_REPZ:
case P_REPNE:
case P_REPNZ:
- return PPS_LREP;
+ return PPS_REP;
case P_O16:
case P_O32:
case P_O64: