projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dad437
)
dev, virtio: properly set PCI address space to use IOREG
author
Bjoern A. Zeeb
<baz21@cam.ac.uk>
Thu, 19 May 2016 20:19:34 +0000
(15:19 -0500)
committer
Bjoern A. Zeeb
<baz21@cam.ac.uk>
Thu, 19 May 2016 20:19:34 +0000
(15:19 -0500)
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>
src/dev/virtio/VirtIO.py
patch
|
blob
|
history
diff --git
a/src/dev/virtio/VirtIO.py
b/src/dev/virtio/VirtIO.py
index 81bf6e3b8e48e664f98bc3fa2be4c38d274ed537..1345c7603dc43051b504d629a018a4d68b6d447e 100644
(file)
--- a/
src/dev/virtio/VirtIO.py
+++ b/
src/dev/virtio/VirtIO.py
@@
-65,7
+65,7
@@
class PciVirtIO(PciDevice):
ClassCode = 0xff # Misc device
- BAR0 = 0x0000000
0 # Anywhere in 32-bit space
+ BAR0 = 0x0000000
1 # Anywhere in 32-bit space; IOREG
BAR0Size = '0B' # Overridden by the device model
InterruptPin = 0x01 # Use #INTA