diff --git a/hw/pass-through.c b/hw/pass-through.c index 1ac1c4c..7b46234 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -1526,6 +1526,13 @@ static int pt_bar_reg_parse( if (!r->size) goto out; + /* for ExpROM BAR */ + if (index == PCI_ROM_SLOT) + { + bar_flag = PT_BAR_FLAG_MEM; + goto out; + } + /* check BAR I/O indicator */ if (d->config[reg->offset] & PCI_BASE_ADDRESS_SPACE_IO) bar_flag = PT_BAR_FLAG_IO;