Skip to contentSkip to conversation

MIPS timer

PATCH New Alexander Voropay 1 participant 1 message Nov 7, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS timer

Hi!

This patch separates MIPS CPU timer and R4K "machine", please review. It's required to add a new MIPS machines.

--
-=AV=-

qemu-20061002/Makefile.target renamed from Makefile.target +1 -1
diff -urP --exclude-from=exclude qemu/Makefile.target ../qemu-20061002/Makefile.target
@@ -357,7 +357,7 @@
 DEFINES += -DHAS_AUDIO
 endif
 ifeq ($(TARGET_ARCH), mips)
-VL_OBJS+= mips_r4k.o dma.o vga.o serial.o i8254.o i8259.o ide.o
+VL_OBJS+= mips_r4k.o mips_timer.o dma.o vga.o serial.o i8254.o i8259.o ide.o
 #VL_OBJS+= #pckbd.o fdc.o m48t59.o
 endif
 ifeq ($(TARGET_BASE_ARCH), sparc)
qemu-20061002/hw/mips_r4k.c renamed from hw/mips_r4k.c +13 -86

121 lines not on this page · raw message

qemu-20061002/hw/mips_timer.c renamed from hw/mips_timer.c +85 -0

85 lines not on this page · raw message

qemu-20061002/vl.h renamed from vl.h +4 -0
diff -urP --exclude-from=exclude qemu/vl.h ../qemu-20061002/vl.h
@@ -1024,6 +1024,10 @@
 /* mips_r4k.c */
 extern QEMUMachine mips_machine;
 
+/* mips_timer.c */
+extern void cpu_mips_clock_init(CPUState *);
+extern void cpu_mips_irqctrl_init (void);
+
 /* shix.c */
 extern QEMUMachine shix_machine;