Re: [PATCH 6/6] target/mips: Allocate CPU IRQs within CPUMIPSState

2025-01-21 Thread Richard Henderson
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

Re: [PATCH 6/6] target/mips: Allocate CPU IRQs within CPUMIPSState

2025-01-21 Thread Philippe Mathieu-Daudé
On 21/1/25 17: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

[PATCH 6/6] target/mips: Allocate CPU IRQs within CPUMIPSState

2025-01-21 Thread Philippe Mathieu-Daudé
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