[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/11] target/s390x: Only compile decode_basedisp() on system-mod
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 06/11] target/s390x: Only compile decode_basedisp() on system-mode |
Date: |
Sat, 9 May 2020 15:09:05 +0200 |
The decode_basedisp*() methods are only used in ioinst.c,
which is only build in system-mode emulation.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
target/s390x/internal.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/s390x/internal.h b/target/s390x/internal.h
index 8c95c734db..c1678dc6bc 100644
--- a/target/s390x/internal.h
+++ b/target/s390x/internal.h
@@ -204,6 +204,8 @@ enum cc_op {
CC_OP_MAX
};
+#ifndef CONFIG_USER_ONLY
+
static inline hwaddr decode_basedisp_s(CPUS390XState *env, uint32_t ipb,
uint8_t *ar)
{
@@ -225,6 +227,8 @@ static inline hwaddr decode_basedisp_s(CPUS390XState *env,
uint32_t ipb,
/* Base/displacement are at the same locations. */
#define decode_basedisp_rs decode_basedisp_s
+#endif /* CONFIG_USER_ONLY */
+
/* arch_dump.c */
int s390_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs,
int cpuid, void *opaque);
--
2.21.3
- Re: [PATCH 02/11] sysemu/accel: Restrict machine methods to system-mode, (continued)
- [PATCH 03/11] sysemu/tcg: Only declare tcg_allowed when TCG is available, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 04/11] sysemu/hvf: Only declare hvf_allowed when HVF is available, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 05/11] target/ppc: Restrict PPCVirtualHypervisorClass to system-mode, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 06/11] target/s390x: Only compile decode_basedisp() on system-mode,
Philippe Mathieu-Daudé <=
- [PATCH 07/11] target/s390x/helper: Clean ifdef'ry, Philippe Mathieu-Daudé, 2020/05/09
- [PATCH 08/11] target/s390x: Restrict system-mode declarations, Philippe Mathieu-Daudé, 2020/05/09