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>
This commit is contained in:
parent
9ce8c6ddd3
commit
30a8d3a142
@ -24,7 +24,6 @@
|
||||
#include "hw/mips/mips.h"
|
||||
#include "hw/qdev-clock.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/mips/cpudevs.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "sysemu/reset.h"
|
||||
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include "hw/block/flash.h"
|
||||
#include "hw/mips/mips.h"
|
||||
#include "hw/mips/bootloader.h"
|
||||
#include "hw/mips/cpudevs.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/loader.h"
|
||||
#include "hw/ide/pci.h"
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "qemu/datadir.h"
|
||||
#include "hw/clock.h"
|
||||
#include "hw/mips/mips.h"
|
||||
#include "hw/mips/cpudevs.h"
|
||||
#include "hw/intc/i8259.h"
|
||||
#include "hw/dma/i8257.h"
|
||||
#include "hw/char/serial.h"
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "hw/char/serial.h"
|
||||
#include "hw/intc/loongson_liointc.h"
|
||||
#include "hw/mips/mips.h"
|
||||
#include "hw/mips/cpudevs.h"
|
||||
#include "hw/mips/fw_cfg.h"
|
||||
#include "hw/mips/loongson3_bootp.h"
|
||||
#include "hw/misc/unimp.h"
|
||||
|
@ -37,7 +37,6 @@
|
||||
#include "hw/block/flash.h"
|
||||
#include "hw/mips/mips.h"
|
||||
#include "hw/mips/bootloader.h"
|
||||
#include "hw/mips/cpudevs.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/pci/pci_bus.h"
|
||||
#include "qemu/log.h"
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/mips/cpudevs.h"
|
||||
#include "sysemu/kvm.h"
|
||||
#include "kvm_mips.h"
|
||||
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include "qemu/datadir.h"
|
||||
#include "hw/clock.h"
|
||||
#include "hw/mips/mips.h"
|
||||
#include "hw/mips/cpudevs.h"
|
||||
#include "hw/char/serial.h"
|
||||
#include "hw/isa/isa.h"
|
||||
#include "net/net.h"
|
||||
|
@ -1,14 +0,0 @@
|
||||
#ifndef HW_MIPS_CPUDEVS_H
|
||||
#define HW_MIPS_CPUDEVS_H
|
||||
|
||||
#include "target/mips/cpu-qom.h"
|
||||
|
||||
/* Definitions for MIPS CPU internal devices. */
|
||||
|
||||
/* mips_int.c */
|
||||
void cpu_mips_irq_init_cpu(MIPSCPU *cpu);
|
||||
|
||||
/* mips_timer.c */
|
||||
void cpu_mips_clock_init(MIPSCPU *cpu);
|
||||
|
||||
#endif
|
@ -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);
|
||||
|
@ -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"
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user