Skip to content

Commit

Permalink
hw/mips: Merge 'hw/mips/cpudevs.h' with 'target/mips/cpu.h'
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
philmd committed Oct 19, 2023
1 parent 9ce8c6d commit 30a8d3a
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 24 deletions.
1 change: 0 additions & 1 deletion hw/mips/cps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion hw/mips/fuloong2e.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/mips/jazz.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/mips/loongson3_virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/mips/malta.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hw/mips/mips_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion hw/mips/mipssim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 0 additions & 14 deletions include/hw/mips/cpudevs.h

This file was deleted.

4 changes: 3 additions & 1 deletion target/mips/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion target/mips/sysemu/cp0_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion target/mips/tcg/sysemu/tlb_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 30a8d3a

Please sign in to comment.