qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Some patch about mips, gen_HILO bug fix.


From: Richard Henderson
Subject: Re: [Qemu-devel] Some patch about mips, gen_HILO bug fix.
Date: Mon, 10 Dec 2012 09:41:08 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 12/10/2012 12:37 AM, Elta Era wrote:
>                  tcg_gen_movi_tl(cpu_gpr[ret], \
> -                                (target_long)((int32_t)imm << 16 | \
> +                                (target_long)(int32_t)((int32_t)imm << 16 | \
>                                  (uint32_t)(uint16_t)imm));

This can alternately be fixed by removing an unnecessary cast:

-  (target_long)((int32_t)imm << 16 | (uint32_t)(uint16_t)imm)
+  (target_long)((int32_t)imm << 16 | (uint16_t)imm)



r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]