mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
tcg-sparc: Fix imm13 check in movi.
We were unnecessarily restricting imm13 constants to 12 bits. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
21a8894168
commit
4a09aa895e
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ static inline void tcg_out_movi_imm13(TCGContext *s, int ret, uint32_t arg)
|
||||||
|
|
||||||
static inline void tcg_out_movi_imm32(TCGContext *s, int ret, uint32_t arg)
|
static inline void tcg_out_movi_imm32(TCGContext *s, int ret, uint32_t arg)
|
||||||
{
|
{
|
||||||
if (check_fit_tl(arg, 12))
|
if (check_fit_tl(arg, 13))
|
||||||
tcg_out_movi_imm13(s, ret, arg);
|
tcg_out_movi_imm13(s, ret, arg);
|
||||||
else {
|
else {
|
||||||
tcg_out_sethi(s, ret, arg);
|
tcg_out_sethi(s, ret, arg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue