regression-test experiment cleaned up
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1647 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -19,7 +19,7 @@
|
|||||||
|| !defined(CONFIG_EVENT_IOPORT) || !defined(CONFIG_EVENT_JUMP) || !defined(CONFIG_EVENT_MEMREAD) \
|
|| !defined(CONFIG_EVENT_IOPORT) || !defined(CONFIG_EVENT_JUMP) || !defined(CONFIG_EVENT_MEMREAD) \
|
||||||
|| !defined(CONFIG_EVENT_MEMWRITE) || !defined(CONFIG_EVENT_TRAP) || !defined(CONFIG_SR_REBOOT) \
|
|| !defined(CONFIG_EVENT_MEMWRITE) || !defined(CONFIG_EVENT_TRAP) || !defined(CONFIG_SR_REBOOT) \
|
||||||
|| !defined(CONFIG_SR_SAVE) || !defined(CONFIG_SR_RESTORE) || !defined(CONFIG_SUPPRESS_INTERRUPTS)
|
|| !defined(CONFIG_SR_SAVE) || !defined(CONFIG_SR_RESTORE) || !defined(CONFIG_SUPPRESS_INTERRUPTS)
|
||||||
#error This experiment needs: breakpoints, memread, memwrite. Enable these in the configuration.
|
#error This experiment needs: all CONFIG_EVENT_* and CONFIG_SR_* aspects. Enable these in the configuration.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@ -32,7 +32,6 @@ bool RegressionTest::run()
|
|||||||
|
|
||||||
//Result-File
|
//Result-File
|
||||||
fstream file ("regression-test.results", ios::out | ios::trunc);
|
fstream file ("regression-test.results", ios::out | ios::trunc);
|
||||||
|
|
||||||
file << "experiment start" << endl;
|
file << "experiment start" << endl;
|
||||||
|
|
||||||
//Wait for correct start point
|
//Wait for correct start point
|
||||||
@ -52,7 +51,6 @@ bool RegressionTest::run()
|
|||||||
|
|
||||||
//Save state
|
//Save state
|
||||||
file << "Saving state." << endl;
|
file << "Saving state." << endl;
|
||||||
|
|
||||||
simulator.save("regression-save");
|
simulator.save("regression-save");
|
||||||
instrAddr_at_save = simulator.getRegisterManager().getInstructionPointer();
|
instrAddr_at_save = simulator.getRegisterManager().getInstructionPointer();
|
||||||
|
|
||||||
@ -62,7 +60,6 @@ bool RegressionTest::run()
|
|||||||
tp.setOstream(&of);
|
tp.setOstream(&of);
|
||||||
simulator.addFlow(&tp);
|
simulator.addFlow(&tp);
|
||||||
|
|
||||||
//SerialOutput-Plugin
|
|
||||||
SerialOutput so(0x3F8);
|
SerialOutput so(0x3F8);
|
||||||
simulator.addFlow(&so);
|
simulator.addFlow(&so);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user