diff --git a/core/LSU.hpp b/core/LSU.hpp index b928af72..040ba76c 100644 --- a/core/LSU.hpp +++ b/core/LSU.hpp @@ -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 //////////////////////////////////////////////////////////////////////////////// diff --git a/test/core/lsu/Lsu_test.cpp b/test/core/lsu/Lsu_test.cpp index 7af004d3..158ad0a3 100644 --- a/test/core/lsu/Lsu_test.cpp +++ b/test/core/lsu/Lsu_test.cpp @@ -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