git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1247 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
28 lines
498 B
Plaintext
28 lines
498 B
Plaintext
#ifndef __REBOOT_AH__
|
|
#define __REBOOT_AH__
|
|
|
|
#include "config/FailConfig.hpp"
|
|
#include "../SALInst.hpp"
|
|
|
|
#ifdef CONFIG_SR_REBOOT
|
|
|
|
#include "bochs.h"
|
|
|
|
aspect reboot {
|
|
pointcut cpuLoop() = "void defineCPULoopJoinPoint(...)";
|
|
|
|
advice execution (cpuLoop()) : after () {
|
|
if (!sal::reboot_bochs_request) {
|
|
return;
|
|
}
|
|
|
|
bx_gui_c::reset_handler();
|
|
std::cout << "[FAIL] Reboot finished" << std::endl;
|
|
sal::simulator.rebootDone();
|
|
}
|
|
};
|
|
|
|
#endif // CONFIG_SR_REBOOT
|
|
|
|
#endif // __REBOOT_AH__
|