aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/gxemul
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-10-04 06:53:29 +0800
committerimp <imp@FreeBSD.org>2008-10-04 06:53:29 +0800
commit3de4aced027d1d9162aa6ffd97fd7d459e6119f4 (patch)
treee751b071710175a7c64e9d4addccae7888a170ab /emulators/gxemul
parent5519c1944937bb47db68eb5c00969a49409ab292 (diff)
downloadfreebsd-ports-gnome-3de4aced027d1d9162aa6ffd97fd7d459e6119f4.tar.gz
freebsd-ports-gnome-3de4aced027d1d9162aa6ffd97fd7d459e6119f4.tar.zst
freebsd-ports-gnome-3de4aced027d1d9162aa6ffd97fd7d459e6119f4.zip
o Fix a bug reported by Oleksandr Tymoshenko:
Due to small issue with gxemul (PCI registers values of piix controller are not saved having been written) FreeBSD in gxemul panics after detecting IDE devices. Apply this patch to fix it... o Bump PORTREVISION o Take on this port. Submitted by: gonzo@
Diffstat (limited to 'emulators/gxemul')
-rw-r--r--emulators/gxemul/Makefile3
-rw-r--r--emulators/gxemul/files/patch-bus_pci.c11
2 files changed, 13 insertions, 1 deletions
diff --git a/emulators/gxemul/Makefile b/emulators/gxemul/Makefile
index fbe26c44955a..50236ba887b6 100644
--- a/emulators/gxemul/Makefile
+++ b/emulators/gxemul/Makefile
@@ -7,11 +7,12 @@
PORTNAME= gxemul
PORTVERSION= 0.4.6.5
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://gxemul.sourceforge.net/src/ \
http://gavare.se/gxemul/src/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= imp@FreeBSD.org
COMMENT= Instruction-level machine emulator
OPTIONS= X11 "X11 support" on
diff --git a/emulators/gxemul/files/patch-bus_pci.c b/emulators/gxemul/files/patch-bus_pci.c
new file mode 100644
index 000000000000..023dee43bac6
--- /dev/null
+++ b/emulators/gxemul/files/patch-bus_pci.c
@@ -0,0 +1,11 @@
+--- src/devices/bus_pci.c.orig 2008-10-03 14:11:25.000000000 -0700
++++ src/devices/bus_pci.c 2008-10-03 14:11:34.000000000 -0700
+@@ -776,6 +776,8 @@
+ void *wdc1 = ((struct piix_ide_extra *)pd->extra)->wdc1;
+ int enabled = 0;
+
++ PCI_SET_DATA(reg, value);
++
+ switch (reg) {
+ case PCI_COMMAND_STATUS_REG:
+ if (value & PCI_COMMAND_IO_ENABLE)