]> xenbits.xensource.com Git - qemu-xen.git/commit
target/i386: Fix carry flag for BLSI
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 1 Aug 2024 07:57:45 +0000 (17:57 +1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 20 Aug 2024 23:11:26 +0000 (09:11 +1000)
commit83a3a20e59fa4b1add714bb4062af0d144b67ab7
tree31258210a65e5e5b559d537d09c1d2a30814a26d
parent266d6dddbd85286e64004499f6f8f6fad15e5521
target/i386: Fix carry flag for BLSI

BLSI has inverted semantics for C as compared to the other two
BMI1 instructions, BLSMSK and BLSR.  Introduce CC_OP_BLSI* for
this purpose.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2175
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240801075845.573075-3-richard.henderson@linaro.org>
target/i386/cpu.h
target/i386/tcg/cc_helper.c
target/i386/tcg/cc_helper_template.h.inc
target/i386/tcg/emit.c.inc
target/i386/tcg/translate.c
tests/tcg/x86_64/Makefile.target
tests/tcg/x86_64/test-2175.c [new file with mode: 0644]