mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-18 02:12:13 -07:00
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: 5a4d034f3c ("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>
This commit is contained in:
parent
7630de24ba
commit
169d253e1f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue