diff options
author | Richard Henderson | 2021-06-13 23:58:05 +0200 |
---|---|---|
committer | Richard Henderson | 2021-06-29 19:04:57 +0200 |
commit | 2b836c2ac1d040bbe2e47fd000924083fbcef414 (patch) | |
tree | 387faf2a4141c823273fb2136db536f15554d9d1 /target/mips | |
parent | tcg: Handle new bswap flags during optimize (diff) | |
download | qemu-2b836c2ac1d040bbe2e47fd000924083fbcef414.tar.gz qemu-2b836c2ac1d040bbe2e47fd000924083fbcef414.tar.xz qemu-2b836c2ac1d040bbe2e47fd000924083fbcef414.zip |
tcg: Add flags argument to tcg_gen_bswap16_*, tcg_gen_bswap32_i64
Implement the new semantics in the fallback expansion.
Change all callers to supply the flags that keep the
semantics unchanged locally.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/mips')
-rw-r--r-- | target/mips/tcg/mxu_translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/tcg/mxu_translate.c b/target/mips/tcg/mxu_translate.c index 963d4ba8b1..3f35e46399 100644 --- a/target/mips/tcg/mxu_translate.c +++ b/target/mips/tcg/mxu_translate.c @@ -861,7 +861,7 @@ static void gen_mxu_s32ldd_s32lddr(DisasContext *ctx) if (sel == 1) { /* S32LDDR */ - tcg_gen_bswap32_tl(t1, t1); + tcg_gen_bswap32_tl(t1, t1, TCG_BSWAP_IZ | TCG_BSWAP_OZ); } gen_store_mxu_gpr(t1, XRa); |