]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/misc/mips_itu: Declare itc_reconfigure() in 'hw/misc/mips_itu.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 6 Oct 2023 07:15:34 +0000 (09:15 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 19 Oct 2023 21:13:27 +0000 (23:13 +0200)
We already provide "hw/misc/mips_itu.h" to declare prototype
related to MIPSITUState. Move itc_reconfigure() declaration
there.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231009171443.12145-3-philmd@linaro.org>

include/hw/misc/mips_itu.h
target/mips/cpu.h
target/mips/tcg/sysemu/cp0_helper.c

index 35218b2d1464ff838c706b45c65cbb65ed6cf5e2..a413789151a42a7917e48395c2ddc4eb39b29330 100644 (file)
@@ -79,4 +79,6 @@ struct MIPSITUState {
 /* Get ITC Configuration Tag memory region. */
 MemoryRegion *mips_itu_get_tag_region(MIPSITUState *itu);
 
+void itc_reconfigure(struct MIPSITUState *tag);
+
 #endif /* MIPS_ITU_H */
index fb44defc93e04c59c210de0dcc9ba1405e09de3a..5fddceff3a33c69cc8183b0ac73ae1e4a54d644b 100644 (file)
@@ -1350,9 +1350,6 @@ void cpu_mips_soft_irq(CPUMIPSState *env, int irq, int level);
 void cpu_mips_irq_init_cpu(MIPSCPU *cpu);
 void cpu_mips_clock_init(MIPSCPU *cpu);
 
-/* mips_itu.c */
-void itc_reconfigure(struct MIPSITUState *tag);
-
 #endif /* !CONFIG_USER_ONLY */
 
 /* helper.c */
index 5da11245892873cf454823e9a2075b676b6ce726..d3495487431c0d769941437f3437fdd1d510663a 100644 (file)
@@ -28,6 +28,7 @@
 #include "qemu/host-utils.h"
 #include "exec/helper-proto.h"
 #include "exec/exec-all.h"
+#include "hw/misc/mips_itu.h"
 
 
 /* SMP helpers.  */