@@ -52,9 +52,6 @@ class olympia::LSUTester
52
52
EXPECT_EQUAL (lsu.complete_stage_ , 6 );
53
53
}
54
54
55
- void test_store_size (olympia::LSU &lsu, int size) {
56
- EXPECT_EQUAL (lsu.store_buffer_ .size (), size);
57
- }
58
55
};
59
56
60
57
const char USAGE[] =
@@ -114,14 +111,13 @@ void runTest(int argc, char **argv)
114
111
115
112
if (my_lsu->allow_data_forwarding_ex ()) {
116
113
// Data forwarding enabled case
117
-
114
+ std::cout << " allow data forwarding " << " \n " ;;
118
115
// First store
119
116
cls.runSimulator (&sim, 7 );
120
- lsupipe_tester.test_store_size (*my_lsu, 1 );
121
117
122
118
// First load - should get data from store forwarding
123
119
auto start_cycle = my_lsu->getClock ()->currentCycle ();
124
- cls.runSimulator (&sim, 3 );
120
+ cls.runSimulator (&sim, 3 );
125
121
EXPECT_EQUAL (my_lsu->getClock ()->currentCycle () - start_cycle, 3 ); // Fast path
126
122
127
123
// Second load - no matching store, goes to cache
@@ -131,20 +127,18 @@ void runTest(int argc, char **argv)
131
127
132
128
// Second store and load
133
129
cls.runSimulator (&sim, 47 );
134
- lsupipe_tester.test_store_size (*my_lsu, 2 );
135
- lsupipe_tester.test_replay_issue_abort (*my_lsu, 2 );
130
+ lsupipe_tester.test_replay_issue_abort (*my_lsu, 0 );
136
131
}
137
132
else {
138
133
// Data forwarding disabled case
139
-
134
+
140
135
// First store
141
136
cls.runSimulator (&sim, 7 );
142
- lsupipe_tester.test_store_size (*my_lsu, 1 );
143
137
144
138
// First load - must go to cache
145
139
auto start_cycle = my_lsu->getClock ()->currentCycle ();
146
140
cls.runSimulator (&sim, 7 ); // Takes longer, must access cache
147
- EXPECT_EQUAL (my_lsu->getClock ()->currentCycle () - start_cycle, 7 );
141
+ EXPECT_EQUAL (my_lsu->getClock ()->currentCycle () - start_cycle, 7 );
148
142
149
143
// Second load - also must go to cache
150
144
start_cycle = my_lsu->getClock ()->currentCycle ();
@@ -153,7 +147,6 @@ void runTest(int argc, char **argv)
153
147
154
148
// Second store and load
155
149
cls.runSimulator (&sim, 47 );
156
- lsupipe_tester.test_store_size (*my_lsu, 2 );
157
150
lsupipe_tester.test_replay_issue_abort (*my_lsu, 2 );
158
151
}
159
152
0 commit comments