summaryrefslogtreecommitdiff
path: root/nasm.h
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 /nasm.h
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 'nasm.h')
-rw-r--r--nasm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/nasm.h b/nasm.h
index 01f9ffc..23def29 100644
--- a/nasm.h
+++ b/nasm.h
@@ -544,12 +544,13 @@ enum ea_type {
* preferences, you can change this. REX prefixes are handled
* differently for the time being.
*
- * Note that LOCK and REP are in the same slot. This is
- * an x86 architectural constraint.
+ * LOCK and REP used to be one slot; this is no longer the case since
+ * the introduction of HLE.
*/
enum prefix_pos {
PPS_WAIT, /* WAIT (technically not a prefix!) */
- PPS_LREP, /* Lock or REP prefix */
+ PPS_REP, /* REP/HLE prefix */
+ PPS_LOCK, /* LOCK prefix */
PPS_SEG, /* Segment override prefix */
PPS_OSIZE, /* Operand size prefix */
PPS_ASIZE, /* Address size prefix */