memory_libmap: Fix wrprio handling.
authorMarcelina Kościelnicka <mwk@0x04.net>
Thu, 16 Jun 2022 23:20:33 +0000 (01:20 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Fri, 17 Jun 2022 00:09:37 +0000 (02:09 +0200)
passes/memory/memory_libmap.cc

index d77e4be3002f74b8f4bf2d7e4ecfd9796741a939..9e147b0bf06db1ee74438a290dfa526235914e90 100644 (file)
@@ -837,7 +837,7 @@ void MemMapping::handle_priority() {
                        if (!port2.priority_mask[p1idx])
                                continue;
                        for (auto &cfg: cfgs) {
-                               auto &p1cfg = cfg.rd_ports[p1idx];
+                               auto &p1cfg = cfg.wr_ports[p1idx];
                                auto &p2cfg = cfg.wr_ports[p2idx];
                                bool found = false;
                                for (auto &pgi: p2cfg.def->wrprio) {