tcg/arm: Fix tgen_deposit
When converting from tcg_out_deposit, the arguments were not
shuffled properly.
Cc: qemu-stable@nongnu.org
Fixes: cf4905c031 ("tcg: Convert deposit to TCGOutOpDeposit")
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Tested-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
baa79455fa
commit
27ea28a0b3
1 changed files with 2 additions and 1 deletions
|
|
@ -975,7 +975,8 @@ static void tgen_deposit(TCGContext *s, TCGType type, TCGReg a0, TCGReg a1,
|
|||
TCGReg a2, unsigned ofs, unsigned len)
|
||||
{
|
||||
/* bfi/bfc */
|
||||
tcg_out32(s, 0x07c00010 | (COND_AL << 28) | (a0 << 12) | a1
|
||||
tcg_debug_assert(a0 == a1);
|
||||
tcg_out32(s, 0x07c00010 | (COND_AL << 28) | (a0 << 12) | a2
|
||||
| (ofs << 7) | ((ofs + len - 1) << 16));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue