moving terminate() to SimulatorController
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1017 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -282,4 +282,12 @@ T* SimulatorController::getExperimentData()
|
|||||||
return (concreteExpDat);
|
return (concreteExpDat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SimulatorController::terminate(int exCode)
|
||||||
|
{
|
||||||
|
// Attention: This could cause problems, e.g., because of non-closed sockets
|
||||||
|
std::cout << "[FAIL] Exit called by experiment with exit code: " << exCode << std::endl;
|
||||||
|
// TODO: (Non-)Verbose-Mode?
|
||||||
|
exit(exCode);
|
||||||
|
}
|
||||||
|
|
||||||
} // end-of-namespace: sal
|
} // end-of-namespace: sal
|
||||||
|
|||||||
@ -139,7 +139,7 @@ class SimulatorController
|
|||||||
* Terminate simulator
|
* Terminate simulator
|
||||||
* @param exCode Individual exit code
|
* @param exCode Individual exit code
|
||||||
*/
|
*/
|
||||||
virtual void terminate(int exCode = EXIT_SUCCESS) = 0;
|
virtual void terminate(int exCode = EXIT_SUCCESS);
|
||||||
/**
|
/**
|
||||||
* Check whether the interrupt should be suppressed.
|
* Check whether the interrupt should be suppressed.
|
||||||
* @param interruptNum the interrupt-type id
|
* @param interruptNum the interrupt-type id
|
||||||
|
|||||||
@ -170,14 +170,6 @@ void BochsController::rebootDone()
|
|||||||
m_Flows.toggle(m_CurrFlow);
|
m_Flows.toggle(m_CurrFlow);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BochsController::terminate(int exCode)
|
|
||||||
{
|
|
||||||
// Attention: This could cause Problems, e.g. because of non-closed sockets
|
|
||||||
std::cout << "[FAIL] Exit called by experiment with exit code: " << exCode << std::endl;
|
|
||||||
// TODO: (Non-)Verbose-Mode?
|
|
||||||
exit(exCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
void BochsController::fireInterrupt(unsigned irq)
|
void BochsController::fireInterrupt(unsigned irq)
|
||||||
{
|
{
|
||||||
interrupt_injection_request = true;
|
interrupt_injection_request = true;
|
||||||
|
|||||||
@ -8,7 +8,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#include "failbochs.hpp"
|
#include "failbochs.hpp"
|
||||||
|
|
||||||
@ -87,11 +86,6 @@ class BochsController : public SimulatorController
|
|||||||
* Reboot finished: Callback from Simulator
|
* Reboot finished: Callback from Simulator
|
||||||
*/
|
*/
|
||||||
void rebootDone();
|
void rebootDone();
|
||||||
/**
|
|
||||||
* Terminate simulator
|
|
||||||
* @param exCode Individual exit code
|
|
||||||
*/
|
|
||||||
void terminate(int exCode = EXIT_SUCCESS);
|
|
||||||
/**
|
/**
|
||||||
* Fire an interrupt.
|
* Fire an interrupt.
|
||||||
* @param irq Interrupt to be fired
|
* @param irq Interrupt to be fired
|
||||||
|
|||||||
@ -127,10 +127,6 @@ void OVPController::toPreviousCtx()
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void OVPController::terminate(int exCode){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void OVPController::fireTimer(uint32_t){
|
void OVPController::fireTimer(uint32_t){
|
||||||
|
|
||||||
|
|||||||
@ -66,11 +66,6 @@ class OVPController : public SimulatorController
|
|||||||
* @return the current eip
|
* @return the current eip
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Terminate simulator
|
|
||||||
*/
|
|
||||||
virtual void terminate(int exCode = EXIT_SUCCESS);
|
|
||||||
|
|
||||||
virtual void fireTimer(uint32_t);
|
virtual void fireTimer(uint32_t);
|
||||||
|
|
||||||
void makeGPRegister(int, void*, const string&);
|
void makeGPRegister(int, void*, const string&);
|
||||||
|
|||||||
Reference in New Issue
Block a user