aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-09-15 09:57:05 +0200
committerJan Beulich <jbeulich@suse.com>2023-09-15 09:57:05 +0200
commitda5f9eb43fd792ec2c9366262ba2bf3becb6adb1 (patch)
tree80129b78ace0e3832da0de8c58d7aa6c80bbf7b3 /gas
parentc0260ac61915b053c1a2539797ed5fd06eb99ac6 (diff)
downloadgdb-da5f9eb43fd792ec2c9366262ba2bf3becb6adb1.zip
gdb-da5f9eb43fd792ec2c9366262ba2bf3becb6adb1.tar.gz
gdb-da5f9eb43fd792ec2c9366262ba2bf3becb6adb1.tar.bz2
x86: fold CpuLM and Cpu64
Now that CpuLM is used solely in cpu_arch_flags and cpu_arch[] while Cpu64 is solely used in insn templates, they no longer need to be treated different from other "ordinary" flags; the only "unusual" one left if CpuNo64. Fold both, leaving just Cpu64.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-i386.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index f8d51af..cec9a02 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -2612,7 +2612,7 @@ update_code_flag (int value, int check)
{
PRINTF_LIKE ((*as_error)) = check ? as_fatal : as_bad;
- if (value == CODE_64BIT && !cpu_arch_flags.bitfield.cpulm )
+ if (value == CODE_64BIT && !cpu_arch_flags.bitfield.cpu64 )
{
as_error (_("64bit mode not supported on `%s'."),
cpu_arch_name ? cpu_arch_name : default_arch);
@@ -2907,7 +2907,7 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED)
{
check_cpu_arch_compatible (string, cpu_arch[j].enable);
- if (flag_code == CODE_64BIT && !cpu_arch[j].enable.bitfield.cpulm )
+ if (flag_code == CODE_64BIT && !cpu_arch[j].enable.bitfield.cpu64 )
{
as_bad (_("64bit mode not supported on `%s'."),
cpu_arch[j].name);
@@ -13986,7 +13986,7 @@ static bool check_register (const reg_entry *r)
}
if (((r->reg_flags & (RegRex64 | RegRex)) || r->reg_type.bitfield.qword)
- && (!cpu_arch_flags.bitfield.cpulm
+ && (!cpu_arch_flags.bitfield.cpu64
|| r->reg_type.bitfield.class != RegCR
|| dot_insn ())
&& flag_code != CODE_64BIT)