← Back to Pull requests

fix: keep resolved operands for an instruction held in EX #38

Merged
spr4bhu merged 4 files (62 lines) on Sep 29, 2026 08:46 UTC
View on GitHub
spr4bhu spr4bhu commented on Sep 21, 2026 11:17 UTC
Author

Changed:

ID_EX now captures the operands EX resolved in the cycle it's held, instead of re-latching decode's own copy each cycle. Fixed a bug where an instruction held in EX would fall back to a stale operand once its producer drained out of writeback, since the forwarding match for that producer had already disappeared. In Linux this corrupted sw ra,12(sp), sending memblock_allow_resize to the wrong address and hanging the boot; test_memory_wait.py gets a function-prologue-shaped program to catch it.

Diff: 62 lines (+53 / -9) across 4 files Reviewer: 5iri Review duration: 11368m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.32) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 62 lines diff across 4 files
0.32
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 4 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
90%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.248
Real PR Conversation Timeline
5 items
5iri 5iri commented on Sep 27, 2026 18:54 UTC
Contributor

PR #37 was squashed into main; this branch now conflicts in test_memory_wait.py. Please rebase and resolve it.

spr4bhu spr4bhu commented on Sep 27, 2026 19:40 UTC
Author

done @5iri pls review

5iri 5iri commented on code on Sep 28, 2026 05:46 UTC
Code Review
tests/system_tests/test_memory_wait.py:1
@@ -78,6 +78,10 @@
         add     s0, s0, t5
         sw      s0, 0(t6)
         jal     ra, tail
+        # Prologue shape: the second store's base comes from the instruction just before it.
+        addi    a4, a1, 32

Use separate fetch and data latencies here; shared MEM_LATENCY inserts bubbles that may prevent the dependent store entering EX.

spr4bhu spr4bhu commented on code on Sep 28, 2026 11:01 UTC
Code Review
tests/system_tests/test_memory_wait.py:1
@@ -78,6 +78,10 @@
         add     s0, s0, t5
         sw      s0, 0(t6)
         jal     ra, tail
+        # Prologue shape: the second store's base comes from the instruction just before it.
+        addi    a4, a1, 32

Done

Reviewers
Assignees
spr4bhu spr4bhu
Labels
risk: low confidence: 90.6% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 32.2% (LOW) · Higher = larger blast radius
32.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 90.6% · Lower = rushed or shallow review
90.6%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 3% · Safe to merge
3%