qemu-e2k/target/sparc
Philippe Mathieu-Daudé 1284119991 hw/sparc: Allow building without the leon3 machine
When building without the leon3 machine, we get this link failure:

  /usr/bin/ld: target_sparc_int32_helper.c.o: in function `leon3_irq_manager':
  target/sparc/int32_helper.c:172: undefined reference to `leon3_irq_ack'

This is because the leon3_irq_ack() is declared in hw/sparc/leon3.c,
which is only build when CONFIG_LEON3 is selected.

Fix by moving the leon3_cache_control_int() / leon3_irq_manager()
(which are specific to the leon3 machine) to hw/sparc/leon3.c.
Move the trace events along (but don't rename them).

leon3_irq_ack() is now locally used, declare it static to reduce
its scope.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: KONRAD Frederic <frederic.konrad@adacore.com>
Tested-by: KONRAD Frederic <frederic.konrad@adacore.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20210428141655.387430-2-f4bug@amsat.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
2021-05-04 22:45:53 +01:00
..
asi.h
cc_helper.c sparc tcg cpus: Fix Lesser GPL version number 2020-11-15 16:46:00 +01:00
cpu-param.h
cpu-qom.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 2020-09-18 14:12:32 -04:00
cpu.c cpu: tcg_ops: move to tcg-cpu-ops.h, keep a pointer in CPUClass 2021-02-05 10:24:15 -10:00
cpu.h hw/sparc: Allow building without the leon3 machine 2021-05-04 22:45:53 +01:00
fop_helper.c sparc tcg cpus: Fix Lesser GPL version number 2020-11-15 16:46:00 +01:00
gdbstub.c sparc tcg cpus: Fix Lesser GPL version number 2020-11-15 16:46:00 +01:00
helper.c sparc tcg cpus: Fix Lesser GPL version number 2020-11-15 16:46:00 +01:00
helper.h
int32_helper.c hw/sparc: Allow building without the leon3 machine 2021-05-04 22:45:53 +01:00
int64_helper.c linux-user/sparc: Handle tstate in sparc64_get/set_context() 2020-12-18 11:23:29 +01:00
ldst_helper.c sparc tcg cpus: Fix Lesser GPL version number 2020-11-15 16:46:00 +01:00
machine.c migration: Replace migration's JSON writer by the general one 2020-12-19 10:39:16 +01:00
meson.build meson: target 2020-08-21 06:30:35 -04:00
mmu_helper.c sparc tcg cpus: Fix Lesser GPL version number 2020-11-15 16:46:00 +01:00
monitor.c hmp: Pass monitor to mon_get_cpu_env() 2020-11-13 12:45:51 +00:00
trace-events hw/sparc: Allow building without the leon3 machine 2021-05-04 22:45:53 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
translate.c target/sparc/translate: silence the compiler warnings 2020-12-18 09:14:23 +01:00
vis_helper.c sparc tcg cpus: Fix Lesser GPL version number 2020-11-15 16:46:00 +01:00
win_helper.c target/sparc/win_helper: silence the compiler warnings 2020-12-18 09:14:23 +01:00