]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: corrections to CPU attribute/flags splitting
authorJan Beulich <jbeulich@suse.com>
Fri, 5 Jan 2024 07:20:23 +0000 (08:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Jan 2024 07:20:23 +0000 (08:20 +0100)
commita12915cc7e2a6721678fc4efe7e6a1e9b970512e
tree1c422bcf2439796cf8bbd946f7fb37017c1ec54c
parent1de6e1fdf10e9e1ab387da04c3bbc6e83e5c5226
x86: corrections to CPU attribute/flags splitting

There are a number of issues with 734dfd1cc966 ("x86: pack CPU flags in
opcode table"):
- the condition when two array slots need writing wasn't correct (with
  enough new Cpu* added an out of bounds array access would validly have
  been complained about by the compiler),
- table generation didn't take into account CpuAttrUnused and CpuUnused
  being independent, and hence there not always (not) being an "unused"
  bitfield member in both structures,
- cpu_flags_from_attr() wasn't ready for use on big-endian hosts,
- there were two style violations.
gas/config/tc-i386.c
opcodes/i386-gen.c