[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 17/24] linux-user: Make sure NWFPE code is 32 bit
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH v6 17/24] linux-user: Make sure NWFPE code is 32 bit ARM only |
Date: |
Tue, 3 Sep 2013 20:12:17 +0100 |
On ARM, linux-user emulation includes NWFPE support for emulating the
ancient FPA floating point coprocessor. This has long since been
superseded by VFP and is only required for legacy binaries. The
AArch64 linux-user target doesn't compile in NWFPE support, so make
sure the relevant code is protected by suitable ifdefs.
Signed-off-by: Peter Maydell <address@hidden>
---
linux-user/qemu.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 4a16e8f..4df4fcb 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -74,7 +74,7 @@ struct vm86_saved_state {
};
#endif
-#ifdef TARGET_ARM
+#if defined(TARGET_ARM) && defined(TARGET_ABI32)
/* FPU emulator */
#include "nwfpe/fpa11.h"
#endif
@@ -98,8 +98,10 @@ struct emulated_sigtable {
typedef struct TaskState {
pid_t ts_tid; /* tid (or pid) of this task */
#ifdef TARGET_ARM
+# ifdef TARGET_ABI32
/* FPA state */
FPA11 fpa;
+# endif
int swi_errno;
#endif
#ifdef TARGET_UNICORE32
--
1.7.9.5
- [Qemu-devel] [PATCH v6 00/24] AArch64 preparation patchset, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 23/24] default-configs: Add config for aarch64-linux-user, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 05/24] target-arm: Fix target_ulong/uint32_t confusions, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 15/24] linux-user: Fix up AArch64 syscall handlers, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 24/24] default-configs: Add config for aarch64-softmmu, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 01/24] target-arm: Make '-cpu any' available in linux-user mode only, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 08/24] target-arm: Disable 32 bit CPUs in 64 bit linux-user builds, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 17/24] linux-user: Make sure NWFPE code is 32 bit ARM only,
Peter Maydell <=
- [Qemu-devel] [PATCH v6 12/24] linux-user: Don't treat AArch64 cpu names specially, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 22/24] configure: Add handling code for AArch64 targets, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 04/24] target-arm: Export cpu_env, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 03/24] target-arm: Extract the disas struct to a header file, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 18/24] linux-user: Implement cpu_set_tls() and cpu_clone_regs() for AArch64, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 13/24] linux-user: Add cpu loop for AArch64, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 07/24] target-arm: Add new AArch64CPUInfo base class and subclasses, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 21/24] linux-user: Add AArch64 support, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 20/24] linux-user: Allow targets to specify a minimum uname release, Peter Maydell, 2013/09/03
- [Qemu-devel] [PATCH v6 06/24] target-arm: Pass DisasContext* to gen_set_pc_im(), Peter Maydell, 2013/09/03