diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2025-06-27 06:22:27 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-06-30 07:42:38 -0600 |
commit | 169d253e1f25cc4adff6571e249222e422a4b07e (patch) | |
tree | 5219c31442aace782f9d26c01989ddd85334ebb9 | |
parent | 7630de24bace80ec031c52e478605692f79ac08b (diff) | |
download | qemu-169d253e1f25cc4adff6571e249222e422a4b07e.zip qemu-169d253e1f25cc4adff6571e249222e422a4b07e.tar.gz qemu-169d253e1f25cc4adff6571e249222e422a4b07e.tar.bz2 |
tcg/riscv: Fix typo in tgen_extract
Fix the direction of the shift, introduced when converting
the codebase to TCGOutOp* and small tgen_* helpers.
Fixes: 5a4d034f3cb ("tcg: Convert extract to TCGOutOpExtract")
Reported-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Andrea Bolognani <abologna@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rw-r--r-- | tcg/riscv/tcg-target.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/riscv/tcg-target.c.inc b/tcg/riscv/tcg-target.c.inc index 1800fd5..31b9f7d 100644 --- a/tcg/riscv/tcg-target.c.inc +++ b/tcg/riscv/tcg-target.c.inc @@ -2502,7 +2502,7 @@ static void tgen_extract(TCGContext *s, TCGType type, TCGReg a0, TCGReg a1, } } if (ofs + len == 32) { - tgen_shli(s, TCG_TYPE_I32, a0, a1, ofs); + tgen_shri(s, TCG_TYPE_I32, a0, a1, ofs); return; } if (len == 1) { |