Add i8259 PIT to MIPS (Ralf Baechle
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1551 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c96a29cdef
commit
697584ab24
|
@ -295,8 +295,8 @@ VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o
|
||||||
VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o
|
VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_ARCH), mips)
|
ifeq ($(TARGET_ARCH), mips)
|
||||||
VL_OBJS+= mips_r4k.o dma.o vga.o serial.o ne2000.o i8259.o
|
VL_OBJS+= mips_r4k.o dma.o vga.o serial.o ne2000.o i8254.o i8259.o
|
||||||
#VL_OBJS+= #ide.o pckbd.o i8254.o fdc.o m48t59.o
|
#VL_OBJS+= #ide.o pckbd.o fdc.o m48t59.o
|
||||||
endif
|
endif
|
||||||
ifeq ($(TARGET_BASE_ARCH), sparc)
|
ifeq ($(TARGET_BASE_ARCH), sparc)
|
||||||
ifeq ($(TARGET_ARCH), sparc64)
|
ifeq ($(TARGET_ARCH), sparc64)
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
extern FILE *logfile;
|
extern FILE *logfile;
|
||||||
|
|
||||||
|
static PITState *pit;
|
||||||
|
|
||||||
static void pic_irq_request(void *opaque, int level)
|
static void pic_irq_request(void *opaque, int level)
|
||||||
{
|
{
|
||||||
if (level) {
|
if (level) {
|
||||||
|
@ -242,6 +244,7 @@ void mips_r4k_init (int ram_size, int vga_ram_size, int boot_device,
|
||||||
isa_mem_base = 0x10000000;
|
isa_mem_base = 0x10000000;
|
||||||
|
|
||||||
isa_pic = pic_init(pic_irq_request, cpu_single_env);
|
isa_pic = pic_init(pic_irq_request, cpu_single_env);
|
||||||
|
pit = pit_init(0x40, 0);
|
||||||
serial_init(0x3f8, 4, serial_hds[0]);
|
serial_init(0x3f8, 4, serial_hds[0]);
|
||||||
vga_initialize(NULL, ds, phys_ram_base + ram_size, ram_size,
|
vga_initialize(NULL, ds, phys_ram_base + ram_size, ram_size,
|
||||||
vga_ram_size, 0, 0);
|
vga_ram_size, 0, 0);
|
||||||
|
|
Loading…
Reference in a new issue