OSDN Git Service

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)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Feb 2023 08:07:24 +0000 (09:07 +0100)
commit5d62d6649cd367b5b4a3676e7514d2f9ca86cb03
tree0a923082c97172d48181db4bb02a10d0d04b8f96
parent78901b5047a2c27858f6c3e780ab3f2af5463631
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>
tests/tcg/i386/test-i386-bmi2.c