Re: [Qemu-devel] [RFC v1 16/23] riscv: tcg-target: Add slowpath load and store instructions

2018-11-20 Thread Richard Henderson
On 11/21/18 1:18 AM, Alistair Francis wrote: > On Fri, Nov 16, 2018 at 1:24 AM Richard Henderson > wrote: >> >> On 11/15/18 11:36 PM, Alistair Francis wrote: >>> +static void tcg_out_mb(TCGContext *s, TCGArg a0) >>> +{ >>> +static const RISCVInsn fence[] = { >>> +[0 ... TCG_MO_ALL] =

Re: [Qemu-devel] [RFC v1 16/23] riscv: tcg-target: Add slowpath load and store instructions

2018-11-20 Thread Alistair Francis
On Fri, Nov 16, 2018 at 1:24 AM Richard Henderson wrote: > > On 11/15/18 11:36 PM, Alistair Francis wrote: > > +static void tcg_out_mb(TCGContext *s, TCGArg a0) > > +{ > > +static const RISCVInsn fence[] = { > > +[0 ... TCG_MO_ALL] = OPC_FENCE_RW_RW, > > +[TCG_MO_LD_LD] =

Re: [Qemu-devel] [RFC v1 16/23] riscv: tcg-target: Add slowpath load and store instructions

2018-11-16 Thread Richard Henderson
On 11/15/18 11:36 PM, Alistair Francis wrote: > +static void tcg_out_mb(TCGContext *s, TCGArg a0) > +{ > +static const RISCVInsn fence[] = { > +[0 ... TCG_MO_ALL] = OPC_FENCE_RW_RW, > +[TCG_MO_LD_LD] = OPC_FENCE_R_R, > +[TCG_MO_ST_LD] = OPC_FENCE_W_R, > +

[Qemu-devel] [RFC v1 16/23] riscv: tcg-target: Add slowpath load and store instructions

2018-11-15 Thread Alistair Francis
Signed-off-by: Alistair Francis Signed-off-by: Michael Clark --- tcg/riscv/tcg-target.inc.c | 240 + 1 file changed, 240 insertions(+) diff --git a/tcg/riscv/tcg-target.inc.c b/tcg/riscv/tcg-target.inc.c index b449e17295..5fe6935e24 100644 ---