[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/12] target/riscv: rationalise softfloat includes
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 11/12] target/riscv: rationalise softfloat includes |
Date: |
Mon, 19 Aug 2019 13:17:08 +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 <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Acked-by: Palmer Dabbelt <address@hidden>
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index f8d07bd20ad..6d52f97d7c3 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 0adb307f329..240b31e2ebb 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 b4f818a6465..0b79562a690 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)
{
--
2.20.1
- [Qemu-devel] [PULL 00/12] softfloat header updates, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 02/12] fpu: convert float[16/32/64]_squash_denormal to new modern style, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 09/12] fpu: rename softfloat-specialize.h -> .inc.c, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 01/12] fpu: replace LIT64 usage with UINT64_C for specialize constants, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 04/12] fpu: replace LIT64 with UINT64_C macros, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 06/12] fpu: remove the LIT64 macro, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 11/12] target/riscv: rationalise softfloat includes,
Alex Bennée <=
- [Qemu-devel] [PULL 03/12] fpu: use min/max values from stdint.h for integral overflow, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 07/12] fpu: move inline helpers into a separate header, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 10/12] target/mips: rationalise softfloat includes, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 08/12] fpu: make softfloat-macros "self-contained", Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 05/12] target/m68k: replace LIT64 with UINT64_C macros, Alex Bennée, 2019/08/19
- [Qemu-devel] [PULL 12/12] targets (various): use softfloat-helpers.h where we can, Alex Bennée, 2019/08/19
- Re: [Qemu-devel] [PULL 00/12] softfloat header updates, Peter Maydell, 2019/08/19