1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Address is relative to beginning of region

This commit is contained in:
Alex Forencich 2018-10-15 13:51:43 -07:00
parent be8ef351ce
commit 22850707a6

View File

@ -3596,7 +3596,7 @@ class RootComplex(Switch):
return b'\x00'*length
def msi_region_write(self, addr, data):
assert addr == self.msi_addr
assert addr == 0
assert len(data) == 4
number = struct.unpack('<L', data)[0]
print("MSI interrupt: 0x%08x, 0x%04x" % (addr, number))