* PATCH: Add HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease
@ 2012-02-21 18:12 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2012-02-21 18:12 UTC (permalink / raw)
To: binutils
Hi,
I checked in this patch to add HLEPrefixNone, HLEPrefixLock, HLEPrefixAny
and HLEPrefixReleas.
H.J.
---
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 619c1f9..6293433 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
+ HLEPrefixAny and HLEPrefixRelease.
+
2012-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 97cb68e..144883e 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -3015,7 +3015,7 @@ check_hle (void)
{
default:
abort ();
- case 0:
+ case HLEPrefixNone:
if (i.prefix[HLE_PREFIX] == XACQUIRE_PREFIX_OPCODE)
as_bad (_("invalid instruction `%s' after `xacquire'"),
i.tm.name);
@@ -3023,7 +3023,7 @@ check_hle (void)
as_bad (_("invalid instruction `%s' after `xrelease'"),
i.tm.name);
return 0;
- case 1:
+ case HLEPrefixLock:
if (i.prefix[LOCK_PREFIX])
return 1;
if (i.prefix[HLE_PREFIX] == XACQUIRE_PREFIX_OPCODE)
@@ -3031,9 +3031,9 @@ check_hle (void)
else
as_bad (_("missing `lock' with `xrelease'"));
return 0;
- case 2:
+ case HLEPrefixAny:
return 1;
- case 3:
+ case HLEPrefixRelease:
if (i.prefix[HLE_PREFIX] != XRELEASE_PREFIX_OPCODE)
{
as_bad (_("instruction `%s' after `xacquire' not allowed"),
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 4c8ad01..b3f5c76 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,10 @@
+2012-02-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386-opc.h (HLEPrefixNone): New.
+ (HLEPrefixLock): Likewise.
+ (HLEPrefixAny): Likewise.
+ (HLEPrefixRelease): Likewise.
+
2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (HLE_Fixup1): New.
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index 245060e..f130a96 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -304,6 +304,10 @@ enum
2. With or without a LOCK prefix.
3. With a RELEASE (0xf3) prefix.
*/
+#define HLEPrefixNone 0
+#define HLEPrefixLock 1
+#define HLEPrefixAny 2
+#define HLEPrefixRelease 3
HLEPrefixOk,
/* Convert to DWORD */
ToDword,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-21 18:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-21 18:12 PATCH: Add HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).