]> Git Repo - qemu.git/commitdiff
target/s390x: Only compile decode_basedisp() on system-mode
authorPhilippe Mathieu-Daudé <[email protected]>
Tue, 26 May 2020 17:24:25 +0000 (19:24 +0200)
committerCornelia Huck <[email protected]>
Fri, 5 Jun 2020 15:13:11 +0000 (17:13 +0200)
The decode_basedisp*() methods are only used in ioinst.c,
which is only build in system-mode emulation.

I/O instructions are privileged, and other S instructions
are decoded elsewhere.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Message-Id: <20200526172427[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
target/s390x/internal.h

index 8c95c734dbe92f1b2187c9edb9469708718d5e5c..c1678dc6bc8b8da1be18bbdf94ee8e98d9c795e6 100644 (file)
@@ -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);
This page took 0.029284 seconds and 4 git commands to generate.