x86: unify CPU flag on/off processing
authorJan Beulich <jbeulich@suse.com>
Thu, 17 Mar 2022 10:04:41 +0000 (11:04 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 17 Mar 2022 10:04:41 +0000 (11:04 +0100)
commitad9de929c3ef0b3b6c32db05cf3dc33ff3904990
treecc8815e24abb964ae9d5a628123fc1adb0f78ba4
parentb1f8a900fdd64dee497912276c9f176169444219
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.
opcodes/i386-gen.c
opcodes/i386-init.h