OSDN Git Service

target/i386: Introduce REX_PREFIX
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 14 May 2021 15:13:07 +0000 (10:13 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 19 May 2021 17:15:46 +0000 (12:15 -0500)
commit1e92b7275c633cada8f8b6fc919b350bafdfc17c
tree12c6a75c2fee521621381f70051a2d3398541af6
parentbeedb93c04bd90868d49f640cdf9dbb439c9fa8f
target/i386: Introduce REX_PREFIX

The existing flag, x86_64_hregs, does not accurately describe
its setting.  It is true if and only if a REX prefix has been
seen.  Yes, that affects the "h" regs, but that's secondary.

Add PREFIX_REX and include this bit in s->prefix.  Add REX_PREFIX
so that the check folds away when x86_64 is compiled out.

Fold away the reg >= 8 check, because bit 3 of the register
number comes from the REX prefix in the first place.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210514151342.384376-16-richard.henderson@linaro.org>
target/i386/tcg/translate.c