Skip to content
Snippets Groups Projects
Commit e586f9d8 authored by Adrian Böckenkamp's avatar Adrian Böckenkamp
Browse files

wmoo: TimerEvent constructor fix.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1367 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
parent ad0cfb9b
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@
#include "sal/SALInst.hpp"
#include "sal/Memory.hpp"
#include "sal/bochs/BochsRegister.hpp"
#include "sal/bochs/BochsEvents.hpp"
#include "sal/Event.hpp"
// you need to have the tracing plugin enabled for this
......@@ -261,7 +262,7 @@ bool WeatherMonitorExperiment::run()
simulator.addEvent(&ev_detected);
// timeout (e.g., stuck in a HLT instruction)
// 10000us = 500000 instructions
TimerEvent ev_timeout(10000, true);
TimerEvent ev_timeout(10000);
simulator.addEvent(&ev_timeout);
#if LOCAL && 0
......@@ -316,9 +317,6 @@ bool WeatherMonitorExperiment::run()
ss << "eventid " << ev->getId() << " EIP " << simulator.getRegisterManager().getInstructionPointer();
result->set_details(ss.str());
}
// explicitly remove all events before we leave their scope
// FIXME event destructors should remove them from the queues
simulator.clearEvents();
}
// sanity check: do we have exactly 8 results?
if (param.msg.result_size() != 8) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment