OSDN Git Service

tcg/i386: Set P_REXW in tcg_out_addi_ptr
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 12 May 2023 17:12:43 +0000 (18:12 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 16 May 2023 22:21:38 +0000 (15:21 -0700)
commit988998503bc6d8c03fbea001a0513e8372fddf28
treea2d127272cc384771e453c021cccc8dd20455a32
parentf9d58e0ca53b3f470b84725a7b5e47fcf446a2ea
tcg/i386: Set P_REXW in tcg_out_addi_ptr

The REXW bit must be set to produce a 64-bit pointer result; the
bit is disabled in 32-bit mode, so we can do this unconditionally.

Fixes: 7d9e1ee424b0 ("tcg/i386: Adjust assert in tcg_out_addi_ptr")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1592
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1642
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/i386/tcg-target.c.inc