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, Nov 14, 10:49 PM (8 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14634748
Default Alt Text
D31819.id94610.diff (406 B)

Event Timeline