|
From: | Richard Henderson |
Subject: | Re: [Qemu-riscv] [PATCH v3 24/35] target/riscv: Move gen_arith_imm() decoding into trans_* functions |
Date: | Wed, 31 Oct 2018 22:26:28 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
On 10/31/18 1:20 PM, Bastian Koppelmann wrote: > + > +#ifdef TARGET_RISCV64 > +static void gen_addiw(TCGv ret, TCGv arg1, TCGv arg2) > +{ > + tcg_gen_add_tl(ret, arg1, arg2); > + tcg_gen_ext32s_tl(ret, ret); > +} > +#endif This should have been called gen_addw. It takes no immediate. r~
[Prev in Thread] | Current Thread | [Next in Thread] |