[binutils-gdb] x86: Intel Core processors do not support CMPXCHG16B

Jan Beulich jbeulich@sourceware.org
Thu Nov 9 11:56:05 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3eda60e3d6edfddf081ed2e8eb0901b6f6279413

commit 3eda60e3d6edfddf081ed2e8eb0901b6f6279413
Author: Jan Beulich <jbeulich@suse.com>
Date:   Thu Nov 9 12:53:30 2023 +0100

    x86: Intel Core processors do not support CMPXCHG16B
    
    This being a 64-bit-only instruction (see also i386-opc.tbl) it cannot
    possibly be supported by CPUs not supporting 64-bit mode.

Diff:
---
 opcodes/i386-gen.c  | 2 +-
 opcodes/i386-init.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index bb58afcbc06..b2ddda3755b 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -63,7 +63,7 @@ static const dependency isa_dependencies[] =
   { "NOCONA",
     "GENERIC64|FISTTP|SSE3|MONITOR|CX16" },
   { "CORE",
-    "P4|FISTTP|SSE3|MONITOR|CX16" },
+    "P4|FISTTP|SSE3|MONITOR" },
   { "CORE2",
     "NOCONA|SSSE3" },
   { "COREI7",
diff --git a/opcodes/i386-init.h b/opcodes/i386-init.h
index d27c8b4658e..475db31e099 100644
--- a/opcodes/i386-init.h
+++ b/opcodes/i386-init.h
@@ -1541,7 +1541,7 @@
 #define CPU_CORE_FLAGS \
   { { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, \
       0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
-      0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
+      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \


More information about the Binutils-cvs mailing list