diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-08 21:03:41 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-08 21:03:41 +0000 |
commit | f929aad6e397060983d5d61911110ef1e75d4af4 (patch) | |
tree | ff05c351a548445324d7d08b8a2a88d13cd9bfff /hw/pc.c | |
parent | e309de25a617b683a86d6a42df4977bde22b8b26 (diff) | |
download | qemu-f929aad6e397060983d5d61911110ef1e75d4af4.zip qemu-f929aad6e397060983d5d61911110ef1e75d4af4.tar.gz qemu-f929aad6e397060983d5d61911110ef1e75d4af4.tar.bz2 |
MSDOS compatibility mode FPU exception support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@793 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r-- | hw/pc.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -45,6 +45,18 @@ static void ioport80_write(void *opaque, uint32_t addr, uint32_t data) { } +/* MSDOS compatibility mode FPU exception support */ +/* XXX: add IGNNE support */ +void cpu_set_ferr(CPUX86State *s) +{ + pic_set_irq(13, 1); +} + +static void ioportF0_write(void *opaque, uint32_t addr, uint32_t data) +{ + pic_set_irq(13, 0); +} + /* PC cmos mappings */ #define REG_EQUIPMENT_BYTE 0x14 @@ -371,6 +383,8 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device, /* init basic PC hardware */ register_ioport_write(0x80, 1, 1, ioport80_write, NULL); + register_ioport_write(0xf0, 1, 1, ioportF0_write, NULL); + vga_initialize(ds, phys_ram_base + ram_size, ram_size, vga_ram_size); |