Index: Makefile.target =================================================================== RCS file: /cvsroot/qemu/qemu/Makefile.target,v retrieving revision 1.55 diff -u -u -r1.55 Makefile.target --- Makefile.target 15 Jan 2005 12:02:56 -0000 1.55 +++ Makefile.target 15 Jan 2005 17:00:17 -0000 @@ -339,6 +339,9 @@ tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) endif +ifdef CONFIG_PORT_E9_HACK +VL_OBJS+=port-e9.o +endif VL_LDFLAGS= # specific flags are needed for non soft mmu emulator Index: configure =================================================================== RCS file: /cvsroot/qemu/qemu/configure,v retrieving revision 1.51 diff -u -u -r1.51 configure --- configure 10 Jan 2005 23:18:50 -0000 1.51 +++ configure 15 Jan 2005 17:00:20 -0000 @@ -76,6 +76,7 @@ gdbstub="yes" slirp="yes" adlib="no" +port_e9_hack="no" oss="no" fmod="no" fmod_lib="" @@ -168,7 +169,9 @@ --disable-slirp) slirp="no" ;; --enable-adlib) adlib="yes" - ;; + ;; + --enable-port-e9-hack) port_e9_hack="yes" + ;; esac done @@ -310,6 +313,7 @@ echo " --enable-fmod enable FMOD audio output driver" echo " --fmod-lib path to FMOD library" echo " --fmod-inc path to FMOD includes" +echo " --enable-port-e9-hack enable port E9 hack" echo "" echo "NOTE: The object files are build at the place where configure is launched" exit 1 @@ -352,6 +356,7 @@ echo "SDL static link $sdl_static" echo "mingw32 support $mingw32" echo "Adlib support $adlib" +echo "Port E9 hack $port_e9_hack" echo -n "FMOD support $fmod" if test $fmod = "yes"; then echo -n " (lib='$fmod_lib' include='$fmod_inc')" @@ -464,6 +469,10 @@ echo "CONFIG_ADLIB=yes" >> $config_mak echo "#define CONFIG_ADLIB 1" >> $config_h fi +if test "$port_e9_hack" = "yes" ; then + echo "CONFIG_PORT_E9_HACK=yes" >> $config_mak + echo "#define CONFIG_PORT_E9_HACK 1" >> $config_h +fi if test "$oss" = "yes" ; then echo "CONFIG_OSS=yes" >> $config_mak echo "#define CONFIG_OSS 1" >> $config_h Index: vl.h =================================================================== RCS file: /cvsroot/qemu/qemu/vl.h,v retrieving revision 1.66 diff -u -u -r1.66 vl.h --- vl.h 15 Jan 2005 12:02:56 -0000 1.66 +++ vl.h 15 Jan 2005 17:00:20 -0000 @@ -828,4 +828,9 @@ int gdbserver_start(int port); +#ifdef CONFIG_PORT_E9_HACK +/* port-e9.c */ +void port_e9_init(void); +#endif /* CONFIG_PORT_E9_HACK */ + #endif /* VL_H */ Index: hw/pc.c =================================================================== RCS file: /cvsroot/qemu/qemu/hw/pc.c,v retrieving revision 1.35 diff -u -u -r1.35 pc.c --- hw/pc.c 15 Jan 2005 12:02:56 -0000 1.35 +++ hw/pc.c 15 Jan 2005 17:00:20 -0000 @@ -586,7 +586,9 @@ } floppy_controller = fdctrl_init(6, 2, 0, 0x3f0, fd_table); - +#ifdef CONFIG_PORT_E9_HACK + port_e9_init(); +#endif cmos_init(ram_size, boot_device, bs_table); /* must be done after all PCI devices are instanciated */