]> git.proxmox.com Git - mirror_qemu.git/commit
target/riscv: Create function to test if FP is enabled
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 30 Jul 2019 23:35:24 +0000 (16:35 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 17 Sep 2019 15:42:42 +0000 (08:42 -0700)
commitb345b48078d79ebe154a50f75e66999605abcc70
tree4604c04876cfd3a404a43e6028ad04751dbb7a97
parentf14d65e8992499a179ecdf1901137ce496a0a607
target/riscv: Create function to test if FP is enabled

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.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Christophe de Dinechin <dinechin@redhat.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/cpu.h
target/riscv/cpu_helper.c
target/riscv/csr.c