vbox5: fix build for vbox

Issue #2081
This commit is contained in:
Alexander Boettcher 2016-09-19 17:37:01 +02:00 committed by Christian Helmuth
parent 27491fe7b4
commit a7d04eefab
5 changed files with 39 additions and 2 deletions

View File

@ -1 +1 @@
a7e90970777f19ba4f1112e927b2c97882dcd8d4
6f6c20213ce4f96218cd69665d2c1757cebbf269

View File

@ -10,3 +10,4 @@ tm_smp.patch
vbox_dd.patch
force_ioapic.patch
vbox-cpuhotplug.dsl.patch
dev_e1000.patch

View File

@ -1,6 +1,5 @@
acpi_drv.patch
avoid_yield.patch
dev_e1000.patch
eminternal.patch
hostservice.patch
iconv.patch

View File

@ -0,0 +1,36 @@
dev_e1000.patch
diff --git a/src/app/virtualbox/src/VBox/Devices/Network/DevE1000.cpp b/src/app/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
index b8f9ebf..aa3eb87 100644
--- a/src/app/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
+++ b/src/app/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
@@ -5721,22 +5721,29 @@ static int e1kRegReadUnaligned(PE1KSTATE pThis, uint32_t offReg, void *pv, uint3
rc = g_aE1kRegMap[index].pfnRead(pThis, offReg & 0xFFFFFFFC, index, &u32);
u32 &= mask;
//e1kCsLeave(pThis);
+#ifdef DEBUG
E1kLog2(("%s At %08X read %s from %s (%s)\n",
pThis->szPrf, offReg, e1kU32toHex(u32, mask, buf), g_aE1kRegMap[index].abbrev, g_aE1kRegMap[index].name));
Log6(("%s At %08X read %s from %s (%s) [UNALIGNED]\n",
pThis->szPrf, offReg, e1kU32toHex(u32, mask, buf), g_aE1kRegMap[index].abbrev, g_aE1kRegMap[index].name));
+#endif
/* Shift back the result. */
u32 >>= shift;
}
+#ifdef DEBUG
else
E1kLog(("%s At %08X read (%s) attempt from write-only register %s (%s)\n",
pThis->szPrf, offReg, e1kU32toHex(u32, mask, buf), g_aE1kRegMap[index].abbrev, g_aE1kRegMap[index].name));
+#endif
+
if (IOM_SUCCESS(rc))
STAM_COUNTER_INC(&pThis->aStatRegReads[index]);
}
+#ifdef DEBUG
else
E1kLog(("%s At %08X read (%s) attempt from non-existing register\n",
pThis->szPrf, offReg, e1kU32toHex(u32, mask, buf)));
+#endif
memcpy(pv, &u32, cb);
return rc;

View File

@ -7,3 +7,4 @@ tm_smp.patch
vmm.patch
iem_wip.patch
dbg.patch
dev_e1000.patch