53a54
> m_stalled_at_cycle_start = 0;
91a93
> unsigned int current_stall_size = 0;
94c96
< // no pops this cycle - heap size is correct
---
> // no pops this cycle - heap and stall queue size is correct
95a98
> current_stall_size = m_stall_map_size;
104a108,110
>
> // Stall queue size at start is considered
> current_stall_size = m_stalled_at_cycle_start;
108c114
< if (current_size + m_stall_map_size + n <= m_max_size) {
---
> if (current_size + current_stall_size + n <= m_max_size) {
113c119,120
< n, current_size, m_prio_heap.size(), m_max_size);
---
> n, current_size + current_stall_size,
> m_prio_heap.size(), m_max_size);
236a244
> m_stalled_at_cycle_start = m_stall_map_size;
276a285
> m_stalled_at_cycle_start = 0;