On Fri, Aug 16, 2019 at 5:42 AM Alistair Francis <alistair.fran...@wdc.com> wrote: > > Let's create a function that tests if floating point support is > enabled. We can then protect all floating point operations based on if > they are enabled. > > This patch so far doesn't change anything, it's just preparing for the > Hypervisor support for floating point operations. > > Signed-off-by: Alistair Francis <alistair.fran...@wdc.com> > Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com> > Reviewed-by: Christophe de Dinechin <dinec...@redhat.com> > Reviewed-by: Chih-Min Chao <chihmin.c...@sifive.com> > --- > target/riscv/cpu.h | 6 +++++- > target/riscv/cpu_helper.c | 10 ++++++++++ > target/riscv/csr.c | 20 +++++++++++--------- > 3 files changed, 26 insertions(+), 10 deletions(-) >
Reviewed-by: Bin Meng <bmeng...@gmail.com>