Skip to content

Commit

Permalink
Fix msi support for virtio pci
Browse files Browse the repository at this point in the history
  • Loading branch information
janweinstock committed Oct 4, 2023
1 parent 58a7866 commit b8b8a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vcml/models/virtio/pci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ bool pci::notify() {
tlm_response_status pci::read(const range& addr, void* data,
const tlm_sbi& info, address_space as) {
if (as != virtio_as())
return TLM_ADDRESS_ERROR_RESPONSE;
return device::read(addr, data, info, as);

static const range device(0x3000, 0x3fff);
if (device.includes(addr)) {
Expand All @@ -171,7 +171,7 @@ tlm_response_status pci::read(const range& addr, void* data,
tlm_response_status pci::write(const range& addr, const void* data,
const tlm_sbi& info, address_space as) {
if (as != virtio_as())
return TLM_ADDRESS_ERROR_RESPONSE;
return device::write(addr, data, info, as);

static const range device(0x3000, 0x3fff);
if (device.includes(addr)) {
Expand Down

0 comments on commit b8b8a82

Please sign in to comment.