diff options
author | Bjoern A. Zeeb <baz21@cam.ac.uk> | 2016-05-19 15:19:34 -0500 |
---|---|---|
committer | Bjoern A. Zeeb <baz21@cam.ac.uk> | 2016-05-19 15:19:34 -0500 |
commit | ce610dcab118fe2ae907854429725a4c169cfd56 (patch) | |
tree | ebbf37eff50af9fe01565297c04c012f4a3ea828 /src | |
parent | 7dad4377eccebfeedbe3dde1886eead7197baa06 (diff) | |
download | gem5-ce610dcab118fe2ae907854429725a4c169cfd56.tar.xz |
dev, virtio: properly set PCI address space to use IOREG
VirtIO spec < 1.0 demands IOREG to be used on PCI and not memory mapped.
Set the correct bit on the PCI address accordingly.
Committed by Jason Lowe-Power <power.jg@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/dev/virtio/VirtIO.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/virtio/VirtIO.py b/src/dev/virtio/VirtIO.py index 81bf6e3b8..1345c7603 100644 --- a/src/dev/virtio/VirtIO.py +++ b/src/dev/virtio/VirtIO.py @@ -65,7 +65,7 @@ class PciVirtIO(PciDevice): ClassCode = 0xff # Misc device - BAR0 = 0x00000000 # Anywhere in 32-bit space + BAR0 = 0x00000001 # Anywhere in 32-bit space; IOREG BAR0Size = '0B' # Overridden by the device model InterruptPin = 0x01 # Use #INTA |