Skip to content

Commit

Permalink
add helpfer function for test
Browse files Browse the repository at this point in the history
  • Loading branch information
MayneMei authored Nov 29, 2024
1 parent 1e2dd26 commit da1a50a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions core/LSU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ namespace olympia
//! name of this resource.
static const char name[];

// return allow_data_forwarding for test
bool allow_data_forwarding_ex() {
return this.allow_data_forwarding_;
}

////////////////////////////////////////////////////////////////////////////////
// Type Name/Alias Declaration
////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion test/core/lsu/Lsu_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void runTest(int argc, char **argv)
olympia::LSUTester lsupipe_tester;
lsupipe_tester.test_pipeline_stages(*my_lsu);

if(my_lsu->allow_data_forwarding_) {
if(my_lsu->allow_data_forwarding_ex()) {
// Data forwarding enabled case

// First store
Expand Down

0 comments on commit da1a50a

Please sign in to comment.