]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/i386: Tidy cc_op_str usage
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 1 Jul 2024 02:51:11 +0000 (19:51 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Oct 2024 17:28:33 +0000 (18:28 +0100)
commitc2954745f2c1ed0c8b8fe7c47c2b09479e3c6d81
treeed6c9979d5ac475c6f766b8f1607f882a2ad5db7
parenta635390f05f37e6e1d3ce2850a1d8564be0081ad
target/i386: Tidy cc_op_str usage

Make const.  Use the read-only strings directly; do not copy
them into an on-stack buffer with snprintf.  Allow for holes
in the cc_op_str array, now present with CC_OP_POPCNT.

Fixes: 460231ad369 ("target/i386: give CC_OP_POPCNT low bits corresponding to MO_TL")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Link: https://lore.kernel.org/r/20240701025115.1265117-2-richard.henderson@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu-dump.c