Revert "explicit aspect activation"
Unfortunately, this does not (yet) work as advertised. I need to fight another round of CMake battles before retrying. Reverting to previous state for now. This reverts r1753. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1767 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
#ifndef __BOCHS_LISTENER_AH__
|
||||
#define __BOCHS_LISTENER_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_BREAKPOINTS)
|
||||
|
||||
#include <cassert>
|
||||
#include "bochs.h"
|
||||
|
||||
#include "BochsListener.hpp"
|
||||
|
||||
/*
|
||||
@ -47,4 +51,5 @@ aspect BochsListener {
|
||||
};
|
||||
};
|
||||
|
||||
#endif // BUILD_BOCHS && CONFIG_EVENT_BREAKPOINTS
|
||||
#endif // __BOCHS_LISTENER_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __BOCHS_NO_ABORT_AH__
|
||||
#define __BOCHS_NO_ABORT_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_BOCHS_NO_ABORT)
|
||||
|
||||
#include "bochs.h"
|
||||
|
||||
aspect BochsNoAbort {
|
||||
@ -32,4 +37,5 @@ aspect BochsNoAbort {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_BOCHS_NO_ABORT
|
||||
#endif // __BOCHS_NO_ABORT_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __BOCHS_NON_VERBOSE_AH__
|
||||
#define __BOCHS_NON_VERBOSE_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_BOCHS_NON_VERBOSE)
|
||||
|
||||
#include "bochs.h"
|
||||
|
||||
/*
|
||||
@ -52,4 +57,5 @@ aspect BochsNonVerbose {
|
||||
: around () { }
|
||||
};
|
||||
|
||||
#endif // CONFIG_BOCHS_NON_VERBOSE
|
||||
#endif // __BOCHS_NON_VERBOSE_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __BREAKPOINTS_AH__
|
||||
#define __BREAKPOINTS_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_BREAKPOINTS)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "cpu/cpu.h"
|
||||
|
||||
@ -24,4 +29,5 @@ aspect Breakpoints {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_BREAKPOINTS
|
||||
#endif // __BREAKPOINTS_AH__
|
||||
|
||||
@ -1,11 +1,14 @@
|
||||
#ifndef __CREDITS_AH__
|
||||
#define __CREDITS_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#ifdef BUILD_BOCHS
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
aspect Credits {
|
||||
bool first;
|
||||
Credits() : first(true) {}
|
||||
@ -28,4 +31,5 @@ aspect Credits {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // BUILD_BOCHS
|
||||
#endif // __CREDITS_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __DISABLE_KEYBOARD_INTERRUPT_AH__
|
||||
#define __DISABLE_KEYBOARD_INTERRUPT_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_DISABLE_KEYB_INTERRUPTS)
|
||||
|
||||
#include "iodev/iodev.h"
|
||||
#include "iodev/keyboard.h"
|
||||
|
||||
@ -17,4 +22,5 @@ aspect DisableKeyboardInterrupt {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_DISABLE_KEYB_INTERRUPTS
|
||||
#endif // __DISABLE_KEYBOARD_INTERRUPT_AH__
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
#ifndef __DISABLE_ADD_REMOVE_LOGFN_AH__
|
||||
#define __DISABLE_ADD_REMOVE_LOGFN_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
|
||||
#ifdef BUILD_BOCHS
|
||||
|
||||
/* Hack to prevent Bochs' logfunctions list (bochs.h) to overflow if the
|
||||
* experiment restores simulator state more than ~1000 times.
|
||||
*
|
||||
@ -16,4 +20,5 @@ aspect DisableLogFunctions {
|
||||
advice execution (add_remove_logfn()) : around () { }
|
||||
};
|
||||
|
||||
#endif // BUILD_BOCHS
|
||||
#endif // __DISABLE_ADD_REMOVE_LOGFN_AH__
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
#ifndef __FAIL_BOCHS_INIT_AH__
|
||||
#define __FAIL_BOCHS_INIT_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
|
||||
#ifdef BUILD_BOCHS
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
aspect FailBochsInit {
|
||||
@ -10,4 +14,5 @@ aspect FailBochsInit {
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // __FAIL_BOCHS_INIT_AH__
|
||||
|
||||
@ -1,10 +1,14 @@
|
||||
#ifndef __FIREINTERRUPT_AH__
|
||||
#define __FIREINTERRUPT_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_FIRE_INTERRUPTS)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "cpu/cpu.h"
|
||||
#include "iodev/iodev.h"
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
aspect FireInterrupt {
|
||||
@ -37,4 +41,5 @@ aspect InterruptDone {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_FIRE_INTERRUPTS
|
||||
#endif // __FIREINTERRUPT_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __GUEST_SYS_COM_AH__
|
||||
#define __GUEST_SYS_COM_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_GUESTSYS)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "cpu/cpu.h"
|
||||
|
||||
@ -24,4 +29,5 @@ aspect GuestSysCom {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_GUESTSYS
|
||||
#endif // __GUEST_SYS_COM_AH__
|
||||
|
||||
@ -1,10 +1,16 @@
|
||||
#ifndef __IOPORT_COM_AH__
|
||||
#define __IOPORT_COM_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_IOPORT)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "cpu/cpu.h"
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
#include "BochsHelpers.hpp"
|
||||
|
||||
// TODO: ATM only capturing bytewise output (most common, I suppose)
|
||||
@ -29,4 +35,5 @@ aspect IOPortCom {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_IOPORT
|
||||
#endif // __IOPORT_COM_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __INTERRUPT_AH__
|
||||
#define __INTERRUPT_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_INTERRUPT)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "cpu/cpu.h"
|
||||
|
||||
@ -30,4 +35,5 @@ aspect Interrupt {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_INTERRUPT
|
||||
#endif // __INTERRUPT_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __INTERRUPT_SUPPRESSION_AH__
|
||||
#define __INTERRUPT_SUPPRESSION_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_SUPPRESS_INTERRUPTS)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "cpu/cpu.h"
|
||||
|
||||
@ -18,4 +23,5 @@ aspect InterruptSuppression {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_SUPPRESS_INTERRUPTS
|
||||
#endif // __INTERRUPT_SUPPRESSION_AH__
|
||||
|
||||
@ -1,10 +1,16 @@
|
||||
#ifndef __JUMP_AH__
|
||||
#define __JUMP_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_JUMP)
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <ctime>
|
||||
|
||||
#include "bochs.h"
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
@ -129,4 +135,5 @@ aspect Jump {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_JUMP
|
||||
#endif // __JUMP_AH__
|
||||
|
||||
@ -1,8 +1,12 @@
|
||||
#ifndef __MEM_ACCESS_AH__
|
||||
#define __MEM_ACCESS_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#ifdef BUILD_BOCHS
|
||||
#if defined(CONFIG_EVENT_MEMREAD) || defined(CONFIG_EVENT_MEMWRITE)
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "bochs.h"
|
||||
@ -153,4 +157,6 @@ aspect MemAccess {
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_MEMACCESS
|
||||
#endif // BUILD_BOCHS
|
||||
#endif // __MEM_ACCESS_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __REBOOT_AH__
|
||||
#define __REBOOT_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_SR_REBOOT)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "../SALInst.hpp"
|
||||
|
||||
@ -20,4 +25,5 @@ aspect Reboot {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_SR_REBOOT
|
||||
#endif // __REBOOT_AH__
|
||||
|
||||
@ -1,7 +1,13 @@
|
||||
#ifndef __RESTORE_STATE_AH__
|
||||
#define __RESTORE_STATE_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_SR_RESTORE)
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "bochs.h"
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
@ -17,4 +23,5 @@ aspect RestoreState {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_SR_RESTORE
|
||||
#endif // __RESTORE_STATE_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef _SAVE_STATE_AH__
|
||||
#define _SAVE_STATE_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_SR_SAVE)
|
||||
|
||||
#include "bochs.h"
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
@ -24,4 +29,5 @@ aspect SaveState {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_SR_SAVE
|
||||
#endif // _SAVE_STATE_AH__
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef __TRAP_AH__
|
||||
#define __TRAP_AH__
|
||||
|
||||
#include "config/VariantConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_TRAP)
|
||||
|
||||
#include "bochs.h"
|
||||
#include "cpu/cpu.h"
|
||||
|
||||
@ -17,4 +22,5 @@ aspect Trap {
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CONFIG_EVENT_TRAP
|
||||
#endif // __TRAP_AH__
|
||||
|
||||
Reference in New Issue
Block a user