Skip to content
Snippets Groups Projects
Commit 878a26b9 authored by Zhenyu Bai's avatar Zhenyu Bai
Browse files

bug fix

parent af282406
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ public:
inline Event *operator->() const { return _e; }
inline Inst *inst() const { return _e->inst(); }
inline bool isStatic() const { return _e->occurrence() == etime::ALWAYS || _e->occurrence() == etime::NEVER; }
inline bool isDynamic() const { return !isDynamic(); }
inline bool isDynamic() const { return !isStatic(); }
private:
Event *_e;
......
......@@ -554,13 +554,13 @@ void StandardILPGenerator::process(Edge *e) {
Inst *faulty = nullptr;
while(ei < events.length()) {
split_events.add(events[ei]);
ei++;
if(events[ei].isDynamic())
dyn_cnt++;
if(dyn_cnt > _eth) {
faulty = events[ei].inst();
break;
}
ei++;
}
// roll-back events of the faulty instruction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment