memory_libmap: Fix wrprio handling.

This commit is contained in:
Marcelina Kościelnicka 2022-06-17 01:20:33 +02:00
parent 25a4cd7020
commit d69091806a
1 changed files with 1 additions and 1 deletions

View File

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