aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-init.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-03-17 11:04:41 +0100
committerJan Beulich <jbeulich@suse.com>2022-03-17 11:04:41 +0100
commitad9de929c3ef0b3b6c32db05cf3dc33ff3904990 (patch)
treecc8815e24abb964ae9d5a628123fc1adb0f78ba4 /opcodes/i386-init.h
parentb1f8a900fdd64dee497912276c9f176169444219 (diff)
downloadgdb-ad9de929c3ef0b3b6c32db05cf3dc33ff3904990.zip
gdb-ad9de929c3ef0b3b6c32db05cf3dc33ff3904990.tar.gz
gdb-ad9de929c3ef0b3b6c32db05cf3dc33ff3904990.tar.bz2
x86: unify CPU flag on/off processing
There's no need for the arbitrary special "unknown" token: Simply recognize the leading ~ and process everything else the same, merely recording whether to set individual fields to 1 or 0. While there exclude CpuIAMCU from CPU_UNKNOWN_FLAGS - CPU_IAMCU_FLAGS override cpu_arch_flags anyway when -march=iamcu is passed, and there's no reason to have the stray flag set even if no insn actually is keyed to it.
Diffstat (limited to 'opcodes/i386-init.h')
-rw-r--r--opcodes/i386-init.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/i386-init.h b/opcodes/i386-init.h
index e587cd6..393fdca 100644
--- a/opcodes/i386-init.h
+++ b/opcodes/i386-init.h
@@ -21,7 +21,7 @@
#define CPU_UNKNOWN_FLAGS \
{ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
+ 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \