summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-27 20:47:44 -0400
committerbd <bdunahu@operationnull.com>2025-03-27 20:47:44 -0400
commit043c2566c112f0d913c52aa80c9fcc4da5fb11ae (patch)
tree65afb024ab26d4731487343d553db961a8dc6659 /tests
parenteaa87e9fcd90c00d6261cbdb854efb7a09467f1d (diff)
Use an unordered map to record pipe stage history on instructions
Diffstat (limited to 'tests')
-rw-r--r--tests/if.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/if.cc b/tests/if.cc
index 5c1b645..3e68ac4 100644
--- a/tests/if.cc
+++ b/tests/if.cc
@@ -77,7 +77,7 @@ TEST_CASE_METHOD(IFPipeFixture, "fetch returns single instuction", "[if_pipe]")
expected_cycles = this->m_delay + this->c_delay + 2;
this->fetch_through(instr);
- CHECK(instr.get_if_cycle() == expected_cycles);
+ CHECK(instr.get_time_of(FETCH) == expected_cycles);
REQUIRE(instr.get_instr_bits() == this->p[0]);
}
@@ -89,12 +89,12 @@ TEST_CASE_METHOD(IFPipeFixture, "fetch returns two instuctions", "[if_pipe]")
expected_cycles = this->m_delay + this->c_delay + 2;
this->fetch_through(instr);
- CHECK(instr.get_if_cycle() == expected_cycles);
+ CHECK(instr.get_time_of(FETCH) == expected_cycles);
REQUIRE(instr.get_instr_bits() == this->p[0]);
expected_cycles += this->c_delay + 1;
this->fetch_cache(instr);
- CHECK(instr.get_if_cycle() == expected_cycles);
+ CHECK(instr.get_time_of(FETCH) == expected_cycles);
REQUIRE(instr.get_instr_bits() == this->p[1]);
}