From 13d35569fa39a66d89c56fe41652a854e71d6e98 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 15 Feb 2019 17:23:14 -0800 Subject: [PATCH] Match IO bars for routing IO operations --- tb/pcie.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tb/pcie.py b/tb/pcie.py index c6f6ad929..ab203d457 100644 --- a/tb/pcie.py +++ b/tb/pcie.py @@ -2499,7 +2499,7 @@ class Bridge(Function): pass elif (tlp.fmt_type == TLP_IO_READ or tlp.fmt_type == TLP_IO_WRITE): # IO read/write - if self.match_bar(tlp.address): + if self.match_bar(tlp.address, io=True): # for me yield from self.handle_tlp(tlp) elif self.io_base <= tlp.address <= self.io_limit: @@ -2579,7 +2579,7 @@ class Bridge(Function): yield from self.upstream_send(tlp) elif (tlp.fmt_type == TLP_IO_READ or tlp.fmt_type == TLP_IO_WRITE): # IO read/write - if self.match_bar(tlp.address): + if self.match_bar(tlp.address, io=True): # for me yield from self.handle_tlp(tlp) elif self.io_base <= tlp.address <= self.io_limit: