Experiment updates due to last commit.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1449 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
#include "MHTestCampaign.hpp"
|
||||
#include "sal/SALInst.hpp"
|
||||
#include "sal/Register.hpp"
|
||||
#include "sal/Event.hpp"
|
||||
#include "sal/Listener.hpp"
|
||||
|
||||
// FIXME: You should provide a dependency check here!
|
||||
|
||||
@ -15,8 +15,8 @@ bool MHTestExperiment::run()
|
||||
{
|
||||
cout << "[MHTestExperiment] Let's go" << endl;
|
||||
#if 0
|
||||
BPSingleEvent mainbp(0x00003c34);
|
||||
simulator.addEventAndWait(&mainbp);
|
||||
BPSingleListener mainbp(0x00003c34);
|
||||
simulator.addListenerAndResume(&mainbp);
|
||||
cout << "[MHTestExperiment] breakpoint reached, saving" << endl;
|
||||
simulator.save("hello.main");
|
||||
#else
|
||||
@ -25,9 +25,9 @@ bool MHTestExperiment::run()
|
||||
int num = par.msg.input();
|
||||
cout << "[MHExperiment] stepping " << num << " instructions" << endl;
|
||||
if (num > 0) {
|
||||
BPSingleEvent nextbp(ANY_ADDR);
|
||||
BPSingleListener nextbp(ANY_ADDR);
|
||||
nextbp.setCounter(num);
|
||||
simulator.addEventAndWait(&nextbp);
|
||||
simulator.addListenerAndResume(&nextbp);
|
||||
}
|
||||
address_t instr = simulator.getRegisterManager().getInstructionPointer();
|
||||
cout << "[MHTestExperiment] Reached instruction: "
|
||||
@ -39,7 +39,7 @@ bool MHTestExperiment::run()
|
||||
cout << "No data for me? :(" << endl;
|
||||
}
|
||||
#endif
|
||||
simulator.clearEvents(this);
|
||||
simulator.clearListeners(this);
|
||||
|
||||
simulator.terminate();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user