From de6ccea3c6d23b788acecb0744221a4f6078597a Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 27 Apr 2025 00:11:54 -0400 Subject: Replace view function with get_data --- tests/cache_1_1.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/cache_1_1.cc') diff --git a/tests/cache_1_1.cc b/tests/cache_1_1.cc index 7d16f76..3cc83a0 100644 --- a/tests/cache_1_1.cc +++ b/tests/cache_1_1.cc @@ -20,7 +20,7 @@ TEST_CASE_METHOD(C11, "store 0th element in DELAY cycles", "[dram]") CHECK(r); expected.at(0) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); } @@ -40,7 +40,7 @@ TEST_CASE_METHOD(C11, "store 0th, 1st element in DELAY cycles, with conflict", " CHECK(!r); // check for early modifications - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(this->expected == this->actual); } @@ -48,7 +48,7 @@ TEST_CASE_METHOD(C11, "store 0th, 1st element in DELAY cycles, with conflict", " CHECK(r); expected.at(0) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); // this should have been loaded already! @@ -59,7 +59,7 @@ TEST_CASE_METHOD(C11, "store 0th, 1st element in DELAY cycles, with conflict", " CHECK(r); expected.at(1) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); } @@ -81,7 +81,7 @@ TEST_CASE_METHOD( CHECK(r); expected.at(0) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); // write back to memory @@ -95,7 +95,7 @@ TEST_CASE_METHOD( CHECK(r); expected.at(0) = 0; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; CHECK(expected == actual); this->wait_then_do( @@ -106,6 +106,6 @@ TEST_CASE_METHOD( expected.at(0) = 0; expected.at(1) = w; - actual = c->view(0, 1)[0]; + actual = c->get_data()[0]; REQUIRE(expected == actual); } -- cgit v1.2.3