diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-09 13:58:39 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-19 23:13:27 +0200 |
commit | 30a8d3a14216e31f2539b00ff4e5df7f3a08ce89 (patch) | |
tree | 663ceee7a1d37c485f9edc92c915788b538782fe /target/mips | |
parent | 9ce8c6ddd302d23df503e89e03544c5e832b4dc3 (diff) | |
download | qemu-30a8d3a14216e31f2539b00ff4e5df7f3a08ce89.zip qemu-30a8d3a14216e31f2539b00ff4e5df7f3a08ce89.tar.gz qemu-30a8d3a14216e31f2539b00ff4e5df7f3a08ce89.tar.bz2 |
hw/mips: Merge 'hw/mips/cpudevs.h' with 'target/mips/cpu.h'
"hw/mips/cpudevs.h" contains declarations which are specific
to the MIPS architecture; it doesn't make sense for these to
be called from a non-MIPS architecture. Move the declarations
to "target/mips/cpu.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231009171443.12145-2-philmd@linaro.org>
Diffstat (limited to 'target/mips')
-rw-r--r-- | target/mips/cpu.h | 4 | ||||
-rw-r--r-- | target/mips/sysemu/cp0_timer.c | 1 | ||||
-rw-r--r-- | target/mips/tcg/sysemu/tlb_helper.c | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 67f8e8b..fb44def 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -1345,8 +1345,10 @@ uint64_t cpu_mips_phys_to_kseg1(void *opaque, uint64_t addr); #if !defined(CONFIG_USER_ONLY) -/* mips_int.c */ +/* HW declaration specific to the MIPS target */ 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); diff --git a/target/mips/sysemu/cp0_timer.c b/target/mips/sysemu/cp0_timer.c index 9d2bcb0..62de502 100644 --- a/target/mips/sysemu/cp0_timer.c +++ b/target/mips/sysemu/cp0_timer.c @@ -22,7 +22,6 @@ #include "qemu/osdep.h" #include "hw/irq.h" -#include "hw/mips/cpudevs.h" #include "qemu/timer.h" #include "sysemu/kvm.h" #include "internal.h" diff --git a/target/mips/tcg/sysemu/tlb_helper.c b/target/mips/tcg/sysemu/tlb_helper.c index 7dbc2e2..4ede904 100644 --- a/target/mips/tcg/sysemu/tlb_helper.c +++ b/target/mips/tcg/sysemu/tlb_helper.c @@ -24,7 +24,6 @@ #include "exec/exec-all.h" #include "exec/cpu_ldst.h" #include "exec/log.h" -#include "hw/mips/cpudevs.h" #include "exec/helper-proto.h" /* TLB management */ |