Re: [Qemu-devel] [PATCH 5/5 v2] RISC-V: Add hooks to use the gdb xml files.

2019-01-29 Thread Palmer Dabbelt
On Mon, 28 Jan 2019 19:11:58 PST (-0800), Jim Wilson wrote: On Tue, Jan 22, 2019 at 1:52 PM Alistair Francis wrote: You can get env and then check for floating point support: CPURISCVState *env = &cs->env; if (env->misa_mask & RVF) { ... I needed this which wasn't hard to figure out. RIS

Re: [Qemu-devel] [PATCH 5/5 v2] RISC-V: Add hooks to use the gdb xml files.

2019-01-28 Thread Jim Wilson
On Tue, Jan 22, 2019 at 1:52 PM Alistair Francis wrote: > You can get env and then check for floating point support: > > CPURISCVState *env = &cs->env; > if (env->misa_mask & RVF) { > ... I needed this which wasn't hard to figure out. RISCVCPU *cpu = RISCV_CPU(cs); CPURISCVState *env = &c

Re: [Qemu-devel] [PATCH 5/5 v2] RISC-V: Add hooks to use the gdb xml files.

2019-01-22 Thread Alistair Francis
On Fri, Dec 28, 2018 at 2:20 PM Jim Wilson wrote: > > Signed-off-by: Jim Wilson > --- > target/riscv/cpu.c | 9 ++- > target/riscv/gdbstub.c | 73 > -- > 2 files changed, 73 insertions(+), 9 deletions(-) > > diff --git a/target/riscv/cpu.

[Qemu-devel] [PATCH 5/5 v2] RISC-V: Add hooks to use the gdb xml files.

2018-12-28 Thread Jim Wilson
Signed-off-by: Jim Wilson --- target/riscv/cpu.c | 9 ++- target/riscv/gdbstub.c | 73 -- 2 files changed, 73 insertions(+), 9 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index a025a0a..b248e3e 100644 --- a/target/ris