hw/sparc*: Move cpu_check_irqs() to target/sparc/
commit10fb1340b161682d64320a5976f88f68472410bf
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 28 Apr 2021 14:16:54 +0000 (28 16:16 +0200)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 4 May 2021 21:45:53 +0000 (4 22:45 +0100)
tree27f6e9ebcde6e481677b518e72df757a15ca86dc
parent5aa7f68a2df9604dbd7f95e9ecece6d553e46e32
hw/sparc*: Move cpu_check_irqs() to target/sparc/

Since cpu_check_irqs() doesn't reference to anything outside
of CPUSPARCState, it better belongs to the architectural code
in target/, rather than the hardware specific code in hw/.

Note: while we moved the trace events, we don't rename them.

Remark: this allows us to build the leon3 machine stand alone,
fixing this link failure (because cpu_check_irqs is defined in
hw/sparc/sun4m.c which is only built when CONFIG_SUN4M is selected):

  /usr/bin/ld: target_sparc_win_helper.c.o: in function `cpu_put_psr':
  target/sparc/win_helper.c:91: undefined reference to `cpu_check_irqs'

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210428141655.387430-5-f4bug@amsat.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/sparc/sun4m.c
hw/sparc/trace-events
hw/sparc64/sparc64.c
hw/sparc64/trace-events
target/sparc/int32_helper.c
target/sparc/int64_helper.c
target/sparc/trace-events