]> xenbits.xensource.com Git - qemu-xen.git/commit
tests/tcg/i386: Introduce and use reg_t consistently
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 14 Jan 2023 23:05:41 +0000 (13:05 -1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commit93ff84d4c0b78ece4dba688cf2d2db6e1a3945f4
treee2810701630001ba2a754aa39e97b3ceafc14161
parent2c0fdb4ed3a122b29462880f4f4c28335d6935ff
tests/tcg/i386: Introduce and use reg_t consistently

Define reg_t based on the actual register width.
Define the inlines using that type.  This will allow
input registers to 32-bit insns to be set to 64-bit
values on x86-64, which allows testing various edge cases.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230114230542.3116013-2-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 5d62d6649cd367b5b4a3676e7514d2f9ca86cb03)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/tcg/i386/test-i386-bmi2.c