[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 6/9] target/riscv/cpu: Move Floating-Point fields closer
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 6/9] target/riscv/cpu: Move Floating-Point fields closer |
Date: |
Sat, 17 Dec 2022 18:29:04 +0100 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/riscv/cpu.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index fc1f72e5c3..05fafebff7 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -143,7 +143,6 @@ typedef struct PMUCTRState {
struct CPUArchState {
target_ulong gpr[32];
target_ulong gprh[32]; /* 64 top bits of the 128-bit registers */
- uint64_t fpr[32]; /* assume both F and D extensions */
/* vector coprocessor state. */
uint64_t vreg[32 * RV_VLEN_MAX / 64] QEMU_ALIGNED(16);
@@ -158,7 +157,10 @@ struct CPUArchState {
target_ulong load_res;
target_ulong load_val;
+ /* Floating-Point state */
+ uint64_t fpr[32]; /* assume both F and D extensions */
target_ulong frm;
+ float_status fp_status;
target_ulong badaddr;
target_ulong bins;
@@ -372,8 +374,6 @@ struct CPUArchState {
target_ulong cur_pmmask;
target_ulong cur_pmbase;
- float_status fp_status;
-
/* Fields from here on are preserved across CPU reset. */
QEMUTimer *stimer; /* Internal timer for S-mode interrupt */
QEMUTimer *vstimer; /* Internal timer for VS-mode interrupt */
--
2.38.1
- [PATCH v2 0/9] target/misc: Header cleanups around "cpu.h", Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 1/9] target/alpha: Remove obsolete STATUS document, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 2/9] target/loongarch/cpu: Remove unused "sysbus.h" header, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 3/9] target/loongarch/cpu: Restrict "memory.h" header to sysemu, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 4/9] target/ppc/internal: Restrict MMU declarations to sysemu, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 5/9] target/ppc/kvm: Remove unused "sysbus.h" header, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 6/9] target/riscv/cpu: Move Floating-Point fields closer,
Philippe Mathieu-Daudé <=
- [PATCH v2 7/9] target/riscv/cpu: Restrict some sysemu-specific fields from CPUArchState, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 9/9] target/xtensa/cpu: Include missing "memory.h" header, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 8/9] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard, Philippe Mathieu-Daudé, 2022/12/17