Set correct PCI BAR sizes
This commit is contained in:
parent
8c4f4cf5d0
commit
02f01f21c9
|
@ -78,7 +78,7 @@ function Ne2k(cpu, bus)
|
|||
this.pci_id = 0x05 << 3;
|
||||
this.pci_bars = [
|
||||
{
|
||||
size: 128 * 1024,
|
||||
size: 0x800,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
@ -122,11 +122,7 @@ function VGAScreen(cpu, bus, vga_memory_size)
|
|||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x01, 0x00, 0x00,
|
||||
];
|
||||
this.pci_id = 0x12 << 3;
|
||||
this.pci_bars = [
|
||||
{
|
||||
size: this.vga_memory_size,
|
||||
},
|
||||
];
|
||||
this.pci_bars = [];
|
||||
|
||||
cpu.devices.pci.register_device(this);
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ function VirtIO(cpu, bus, filesystem)
|
|||
this.pci_id = 0x06 << 3;
|
||||
this.pci_bars = [
|
||||
{
|
||||
size: 128 * 1024,
|
||||
size: 0x800,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue