On 1/21/25 08:18, Philippe Mathieu-Daudé wrote:
There are always 8 IRQs created with a MIPS CPU.
Allocate their state once in CPUMIPSState, initialize
them in place in cpu_mips_irq_init_cpu(). Update hw/ uses.

Move cpu_mips_irq_init_cpu() declaration from "cpu.h"
to "internal.h", as it shouldn't be accessible from hw/.

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  target/mips/cpu.h               |  4 ++--
  target/mips/internal.h          |  2 ++
  hw/intc/mips_gic.c              |  4 ++--
  hw/mips/fuloong2e.c             |  4 ++--
  hw/mips/jazz.c                  |  6 +++---
  hw/mips/loongson3_virt.c        |  4 ++--
  hw/mips/malta.c                 |  4 ++--
  hw/mips/mipssim.c               |  4 ++--
  target/mips/system/cp0_timer.c  |  4 ++--
  target/mips/system/interrupts.c | 11 +++--------
  10 files changed, 22 insertions(+), 25 deletions(-)

Why move into CPUMIPSState and not MIPSCPU?
Is it because that's where irq[8] is currently?

I guess it doesn't matter much either way.
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to