diff options
author | bd <bdunahu@operationnull.com> | 2025-03-29 20:49:32 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-29 20:49:32 -0400 |
commit | 4055b56b5d06e0188d764380d67e40b5b07359ac (patch) | |
tree | dd6ae93279b5922761b9ec36f39f54d3248d9d1e /src/sim/if.cc | |
parent | 24a7d608aa84d6549a52e54726e1379e97cac146 (diff) |
Add advance logic for decode
Diffstat (limited to 'src/sim/if.cc')
-rw-r--r-- | src/sim/if.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |