target/riscv: rationalise softfloat includes
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 8 Aug 2019 16:29:41 +0000 (17:29 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 19 Aug 2019 11:07:13 +0000 (12:07 +0100)
We should avoid including the whole of softfloat headers in cpu.h and
explicitly include it only where we will be calling softfloat
functions. We can use the -types.h and -helpers.h in cpu.h for the few
bits that are global.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/cpu.c
target/riscv/cpu.h
target/riscv/fpu_helper.c

index f8d07bd20ad7634785a560d7b208be66f5b92191..6d52f97d7c3d88259a890279c3c7439a2d308879 100644 (file)
@@ -27,6 +27,7 @@
 #include "qemu/error-report.h"
 #include "hw/qdev-properties.h"
 #include "migration/vmstate.h"
+#include "fpu/softfloat-helpers.h"
 
 /* RISC-V CPU definitions */
 
index 0adb307f3298d59d2ea6a5316f4cb3c3444510d3..240b31e2ebba493d6ec73838e2058c22abe8c525 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "qom/cpu.h"
 #include "exec/cpu-defs.h"
-#include "fpu/softfloat.h"
+#include "fpu/softfloat-types.h"
 
 #define TCG_GUEST_DEFAULT_MO 0
 
index b4f818a646572f2b14239ed07696392f0ef1009d..0b79562a690b28de3399596ec624ff79bf53c091 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
 #include "exec/helper-proto.h"
+#include "fpu/softfloat.h"
 
 target_ulong riscv_cpu_get_fflags(CPURISCVState *env)
 {