Page MenuHomeFreeBSD

D31819.id94610.diff
No OneTemporary

D31819.id94610.diff

diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -2018,7 +2018,7 @@
} else {
x = *eax;
cfgenable = (x & CONF1_ENABLE) == CONF1_ENABLE;
- cfgoff = x & PCI_REGMAX;
+ cfgoff = (x & PCI_REGMAX) & ~0x03;
cfgfunc = (x >> 8) & PCI_FUNCMAX;
cfgslot = (x >> 11) & PCI_SLOTMAX;
cfgbus = (x >> 16) & PCI_BUSMAX;

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 22, 11:53 AM (5 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27813136
Default Alt Text
D31819.id94610.diff (406 B)

Event Timeline