Re: [Qemu-devel] [RFC v2 11/24] riscv: tcg-target: Add the mov and movi instruction

2018-11-28 Thread Richard Henderson
On 11/27/18 1:08 PM, Alistair Francis wrote: > +static void tcg_out_movi(TCGContext *s, TCGType type, TCGReg rd, > + tcg_target_long val) > +{ > +#if TCG_TARGET_REG_BITS == 64 > +tcg_target_long lo = sextract64(val, 0, 12); > +#else > +tcg_target_long lo = sextract32

[Qemu-devel] [RFC v2 11/24] riscv: tcg-target: Add the mov and movi instruction

2018-11-27 Thread Alistair Francis
Signed-off-by: Alistair Francis Signed-off-by: Michael Clark --- tcg/riscv/tcg-target.inc.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/tcg/riscv/tcg-target.inc.c b/tcg/riscv/tcg-target.inc.c index 9c48679f11..e5a07b146f 100644 --- a/tcg/riscv/tcg-