From 4055b56b5d06e0188d764380d67e40b5b07359ac Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 29 Mar 2025 20:49:32 -0400 Subject: Add advance logic for decode --- src/sim/if.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sim/if.cc') diff --git a/src/sim/if.cc b/src/sim/if.cc index de044f8..7d3291b 100644 --- a/src/sim/if.cc +++ b/src/sim/if.cc @@ -8,7 +8,7 @@ IF::IF(Stage *stage) : Stage(stage) { this->id = FETCH; } Response IF::advance(InstrDTO &next_instr, Response p) { - this->fetch_with_buffer(); + this->advance_helper(); if (this->status == OK && p == OK) { // mutual consent ++this->pc; @@ -19,7 +19,7 @@ Response IF::advance(InstrDTO &next_instr, Response p) return this->status; } -void IF::fetch_with_buffer() +void IF::advance_helper() { Response r; signed int bits; -- cgit v1.2.3