On 14/05/21 17:13, Richard Henderson wrote:
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.hender...@linaro.org>
---
  target/i386/tcg/translate.c | 29 +++++++++++------------------
  1 file changed, 11 insertions(+), 18 deletions(-)

Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>


Reply via email to