summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAlex Bennée2019-08-08 18:29:41 +0200
committerAlex Bennée2019-08-19 13:07:13 +0200
commit135b03cb9defbd080b8834b30e3d45bed00c6137 (patch)
treea9f5fa665d05f3761e876a89fb3a4ade2208d40e /target
parenttarget/mips: rationalise softfloat includes (diff)
downloadqemu-135b03cb9defbd080b8834b30e3d45bed00c6137.tar.gz
qemu-135b03cb9defbd080b8834b30e3d45bed00c6137.tar.xz
qemu-135b03cb9defbd080b8834b30e3d45bed00c6137.zip
target/riscv: rationalise softfloat includes
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>
Diffstat (limited to 'target')
-rw-r--r--target/riscv/cpu.c1
-rw-r--r--target/riscv/cpu.h2
-rw-r--r--target/riscv/fpu_helper.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index f8d07bd20a..6d52f97d7c 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -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 */
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 0adb307f32..240b31e2eb 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -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
diff --git a/target/riscv/fpu_helper.c b/target/riscv/fpu_helper.c
index b4f818a646..0b79562a69 100644
--- a/target/riscv/fpu_helper.c
+++ b/target/riscv/fpu_helper.c
@@ -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)
{