mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
target/s390x: Only compile decode_basedisp() on system-mode
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é <f4bug@amsat.org> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20200526172427.17460-6-f4bug@amsat.org> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
cdb509a40b
commit
d64c1bd6ca
1 changed files with 4 additions and 0 deletions
|
@ -204,6 +204,8 @@ enum cc_op {
|
||||||
CC_OP_MAX
|
CC_OP_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
|
||||||
static inline hwaddr decode_basedisp_s(CPUS390XState *env, uint32_t ipb,
|
static inline hwaddr decode_basedisp_s(CPUS390XState *env, uint32_t ipb,
|
||||||
uint8_t *ar)
|
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. */
|
/* Base/displacement are at the same locations. */
|
||||||
#define decode_basedisp_rs decode_basedisp_s
|
#define decode_basedisp_rs decode_basedisp_s
|
||||||
|
|
||||||
|
#endif /* CONFIG_USER_ONLY */
|
||||||
|
|
||||||
/* arch_dump.c */
|
/* arch_dump.c */
|
||||||
int s390_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs,
|
int s390_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cs,
|
||||||
int cpuid, void *opaque);
|
int cpuid, void *opaque);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue