explicit aspect activation
ag++ is now called with a list of currently active aspect headers
(ag++ -a aspect1.ah -a aspect2.ah ...). This resolves several problems at
once:
- Build directories may be positioned arbitrarily now, they need not be
a subdirectory of the project anymore.
- Multiple build directories can coexist within the project tree. Before
this commit, the generated instantiate-*.ah aspect headers disturbed
neighboring build trees.
- Due to this, the regression test should be runnable much more easily
now.
- The build time was reduced by an average of about 10%.
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1753 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -10,6 +10,13 @@ PROJECT(Fail*)
|
|||||||
|
|
||||||
set(PROJECT_VERSION "0.0.1" CACHE STRING "Fail* version number")
|
set(PROJECT_VERSION "0.0.1" CACHE STRING "Fail* version number")
|
||||||
|
|
||||||
|
#### Setup search path for custom cmake scripts ####
|
||||||
|
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
|
# initialize list of active aspect headers
|
||||||
|
set(CMAKE_ASPECT_HEADERS "" CACHE INTERNAL "List of active aspect headers" FORCE)
|
||||||
|
include(macros)
|
||||||
|
|
||||||
#### Put all resulting library files in <your_build_dir>/lib ####
|
#### Put all resulting library files in <your_build_dir>/lib ####
|
||||||
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
||||||
|
|
||||||
@ -19,13 +26,6 @@ SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
|||||||
## (The autoconf'd Bochs instance is placed in the auto-configured path,
|
## (The autoconf'd Bochs instance is placed in the auto-configured path,
|
||||||
## as we still just call Bochs' Makefile's make install)
|
## as we still just call Bochs' Makefile's make install)
|
||||||
|
|
||||||
|
|
||||||
#### Setup search path for custom cmake scipts ####
|
|
||||||
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
||||||
|
|
||||||
#### Compiler configuration, see cmake/compilerconfig.cmake
|
|
||||||
include(compilerconfig)
|
|
||||||
|
|
||||||
#### Backend selection ####
|
#### Backend selection ####
|
||||||
OPTION( BUILD_BOCHS "Build Bochs Variant?" ON)
|
OPTION( BUILD_BOCHS "Build Bochs Variant?" ON)
|
||||||
OPTION( BUILD_GEM5 "Build gem5 Variant?" OFF)
|
OPTION( BUILD_GEM5 "Build gem5 Variant?" OFF)
|
||||||
@ -66,12 +66,17 @@ include_directories(${CMAKE_BINARY_DIR}/src/core)
|
|||||||
## Add CMakeLists from subdirectories:
|
## Add CMakeLists from subdirectories:
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
#### Compiler configuration, see cmake/compilerconfig.cmake
|
||||||
|
# Needs to come after source subdirectories, as we only now know all active .ah files.
|
||||||
|
include(compilerconfig)
|
||||||
|
|
||||||
#### Backend-related build system stuff
|
#### Backend-related build system stuff
|
||||||
include(bochs)
|
include(bochs)
|
||||||
include(gem5)
|
include(gem5)
|
||||||
include(ovp)
|
include(ovp)
|
||||||
include(qemu)
|
include(qemu)
|
||||||
include(t32)
|
include(t32)
|
||||||
|
|
||||||
## Just for testing:
|
## Just for testing:
|
||||||
## Invoking bochs build via external project
|
## Invoking bochs build via external project
|
||||||
# Setup configure call for bochs (-> make ebochs)
|
# Setup configure call for bochs (-> make ebochs)
|
||||||
|
|||||||
@ -71,7 +71,7 @@ if(BUILD_BOCHS)
|
|||||||
set(bochs_src_dir ${PROJECT_SOURCE_DIR}/simulators/bochs)
|
set(bochs_src_dir ${PROJECT_SOURCE_DIR}/simulators/bochs)
|
||||||
|
|
||||||
add_custom_command(OUTPUT "${bochs_src_dir}/libfailbochs.a"
|
add_custom_command(OUTPUT "${bochs_src_dir}/libfailbochs.a"
|
||||||
COMMAND +make -C ${bochs_src_dir} CXX=\"ag++ -p ${PROJECT_SOURCE_DIR} -I${PROJECT_SOURCE_DIR}/src/core -I${CMAKE_BINARY_DIR}/src/core ${CMAKE_AGPP_FLAGS} --Xcompiler\" LIBTOOL=\"/bin/sh ./libtool --tag=CXX\" libfailbochs.a
|
COMMAND +make -C ${bochs_src_dir} CXX=\"ag++ ${AGPP_PARAMETERS} -I${PROJECT_SOURCE_DIR}/src/core -I${CMAKE_BINARY_DIR}/src/core --Xcompiler\" LIBTOOL=\"/bin/sh ./libtool --tag=CXX\" libfailbochs.a
|
||||||
COMMENT "[${PROJECT_NAME}] Building libfailbochs"
|
COMMENT "[${PROJECT_NAME}] Building libfailbochs"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -18,8 +18,12 @@ elseif(${COMPILER} STREQUAL "ag++")
|
|||||||
set(CMAKE_C_COMPILER "ag++")
|
set(CMAKE_C_COMPILER "ag++")
|
||||||
set(CMAKE_CXX_COMPILER "ag++")
|
set(CMAKE_CXX_COMPILER "ag++")
|
||||||
set(CMAKE_AGPP_FLAGS "--real-instances" CACHE STRING "Additional ag++ flags, e.g. --real-instances --keep_woven")
|
set(CMAKE_AGPP_FLAGS "--real-instances" CACHE STRING "Additional ag++ flags, e.g. --real-instances --keep_woven")
|
||||||
## Here we add the build dir holding the generated header files (protobuf)
|
foreach(aspect_header ${CMAKE_ASPECT_HEADERS})
|
||||||
add_definitions("-p ${CMAKE_SOURCE_DIR} ${CMAKE_AGPP_FLAGS} --Xcompiler")
|
list(APPEND AGPP_ASPECTLIST -a ${aspect_header})
|
||||||
|
endforeach(aspect_header)
|
||||||
|
set(AGPP_PARAMETERS ${AGPP_ASPECTLIST} -p ${CMAKE_SOURCE_DIR} ${CMAKE_AGPP_FLAGS})
|
||||||
|
unset(AGPP_ASPECTLIST)
|
||||||
|
add_definitions(${AGPP_PARAMETERS} --Xcompiler)
|
||||||
|
|
||||||
else(${COMPILER} STREQUAL "clang")
|
else(${COMPILER} STREQUAL "clang")
|
||||||
message(FATAL_ERROR "COMPILER must be exactly one of clang/gcc/ag++. If unsure, use 'ag++'.")
|
message(FATAL_ERROR "COMPILER must be exactly one of clang/gcc/ag++. If unsure, use 'ag++'.")
|
||||||
|
|||||||
5
cmake/macros.cmake
Normal file
5
cmake/macros.cmake
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
macro(add_aspect_headers)
|
||||||
|
foreach(ah_path ${ARGN})
|
||||||
|
set(CMAKE_ASPECT_HEADERS ${CMAKE_ASPECT_HEADERS} ${ah_path} CACHE INTERNAL "List of active aspect headers")
|
||||||
|
endforeach()
|
||||||
|
endmacro()
|
||||||
@ -29,6 +29,9 @@ endforeach(plugin_name)
|
|||||||
# (probably there's a smarter way to do that with cmake?)
|
# (probably there's a smarter way to do that with cmake?)
|
||||||
add_library(fail dummy.cc)
|
add_library(fail dummy.cc)
|
||||||
|
|
||||||
|
# dummy .ah file to keep the aspect-header list non-empty
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/dummy.ah)
|
||||||
|
|
||||||
## Setup build dependencies of the Fail* lib
|
## Setup build dependencies of the Fail* lib
|
||||||
## -> the Fail* targets and user defined experiment targets
|
## -> the Fail* targets and user defined experiment targets
|
||||||
# start/end-group: ld must iterate over these archives more than once to figure
|
# start/end-group: ld must iterate over these archives more than once to figure
|
||||||
|
|||||||
@ -1,58 +1,104 @@
|
|||||||
|
# common:
|
||||||
|
set(SRCS
|
||||||
|
Listener.cc
|
||||||
|
ListenerManager.cc
|
||||||
|
SALConfig.cc
|
||||||
|
Register.cc
|
||||||
|
SimulatorController.cc
|
||||||
|
perf/BreakpointBuffer.cc
|
||||||
|
)
|
||||||
|
if(CONFIG_FAST_BREAKPOINTS)
|
||||||
|
add_aspect_headers(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/perf/BreakpointControllerSlice.ah
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/perf/BreakpointManagerSlice.ah
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/perf/FastBreakpoints.ah)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILD_BOCHS)
|
if(BUILD_BOCHS)
|
||||||
set(SRCS
|
list(APPEND SRCS
|
||||||
Listener.cc
|
|
||||||
ListenerManager.cc
|
|
||||||
SALConfig.cc
|
|
||||||
Register.cc
|
|
||||||
SimulatorController.cc
|
|
||||||
perf/BreakpointBuffer.cc
|
|
||||||
bochs/BochsController.cc
|
bochs/BochsController.cc
|
||||||
bochs/BochsListener.cc
|
bochs/BochsListener.cc
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/BochsListener.ah)
|
||||||
|
if(CONFIG_BOCHS_NO_ABORT)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/BochsNoAbort.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_BOCHS_NON_VERBOSE)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/BochsNonVerbose.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_EVENT_BREAKPOINTS)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/Breakpoints.ah)
|
||||||
|
endif()
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/Credits.ah)
|
||||||
|
if(CONFIG_DISABLE_KEYB_INTERRUPTS)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/DisableKeyboardInterrupt.ah)
|
||||||
|
endif()
|
||||||
|
add_aspect_headers(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/bochs/DisableLogFunctions.ah
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/bochs/FailBochsInit.ah)
|
||||||
|
if(CONFIG_FIRE_INTERRUPTS)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/FireInterrupt.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_EVENT_GUESTSYS)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/GuestSysCom.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_EVENT_INTERRUPT)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/Interrupt.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_SUPPRESS_INTERRUPTS)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/InterruptSuppression.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_EVENT_IOPORT)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/IOPortCom.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_EVENT_JUMP)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/Jump.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_EVENT_MEMREAD OR CONFIG_EVENT_MEMWRITE)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/MemAccess.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_SR_REBOOT)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/Reboot.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_SR_RESTORE)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/RestoreState.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_SR_SAVE)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/SaveState.ah)
|
||||||
|
endif()
|
||||||
|
if(CONFIG_EVENT_TRAP)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/bochs/Trap.ah)
|
||||||
|
endif()
|
||||||
elseif(BUILD_GEM5)
|
elseif(BUILD_GEM5)
|
||||||
set(SRCS
|
list(APPEND SRCS
|
||||||
Listener.cc
|
|
||||||
ListenerManager.cc
|
|
||||||
SALConfig.cc
|
|
||||||
Register.cc
|
|
||||||
SimulatorController.cc
|
|
||||||
perf/BreakpointBuffer.cc
|
|
||||||
gem5/Gem5Controller.cc
|
gem5/Gem5Controller.cc
|
||||||
gem5/Gem5PCEvents.cc
|
gem5/Gem5PCEvents.cc
|
||||||
)
|
)
|
||||||
|
# note: contrary to the original preprocessor conditional we do not
|
||||||
|
# depend on CONFIG_EVENT_BREAKPOINTS here (not necessary)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/gem5/Gem5Listener.ah)
|
||||||
elseif(BUILD_OVP)
|
elseif(BUILD_OVP)
|
||||||
set(SRCS
|
list(APPEND SRCS
|
||||||
Listener.cc
|
|
||||||
ListenerManager.cc
|
|
||||||
SALConfig.cc
|
|
||||||
Register.cc
|
|
||||||
SimulatorController.cc
|
|
||||||
perf/BreakpointBuffer.cc
|
|
||||||
${VARIANT}/OVPController.cc
|
${VARIANT}/OVPController.cc
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/ovp/FailOVPInit.ah)
|
||||||
elseif(BUILD_QEMU)
|
elseif(BUILD_QEMU)
|
||||||
set(SRCS
|
list(APPEND SRCS
|
||||||
Listener.cc
|
|
||||||
ListenerManager.cc
|
|
||||||
SALConfig.cc
|
|
||||||
Register.cc
|
|
||||||
perf/BreakpointBuffer.cc
|
|
||||||
SimulatorController.cc
|
|
||||||
qemu/QEMUController.cc
|
qemu/QEMUController.cc
|
||||||
qemu/wrappers.cc
|
qemu/wrappers.cc
|
||||||
)
|
)
|
||||||
|
# note: contrary to the original preprocessor conditional we do not
|
||||||
|
# depend on CONFIG_EVENT_BREAKPOINTS here (not necessary)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/qemu/QEMUListener.ah)
|
||||||
elseif(BUILD_T32)
|
elseif(BUILD_T32)
|
||||||
set(SRCS
|
list(APPEND SRCS
|
||||||
Listener.cc
|
|
||||||
ListenerManager.cc
|
|
||||||
SALConfig.cc
|
|
||||||
Register.cc
|
|
||||||
perf/BreakpointBuffer.cc
|
|
||||||
SimulatorController.cc
|
|
||||||
t32/T32Controller.cc
|
t32/T32Controller.cc
|
||||||
t32/wrappers.cc
|
t32/wrappers.cc
|
||||||
)
|
)
|
||||||
endif(BUILD_BOCHS)
|
# note: contrary to the original preprocessor conditional we do not
|
||||||
|
# depend on CONFIG_EVENT_BREAKPOINTS here (not necessary)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_SOURCE_DIR}/t32/T32Listener.ah)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(fail-sal ${SRCS})
|
add_library(fail-sal ${SRCS})
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,9 @@
|
|||||||
#ifndef __BOCHS_LISTENER_AH__
|
#ifndef __BOCHS_LISTENER_AH__
|
||||||
#define __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 <cassert>
|
||||||
#include "bochs.h"
|
#include "bochs.h"
|
||||||
|
|
||||||
#include "BochsListener.hpp"
|
#include "BochsListener.hpp"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -51,5 +47,4 @@ aspect BochsListener {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BUILD_BOCHS && CONFIG_EVENT_BREAKPOINTS
|
|
||||||
#endif // __BOCHS_LISTENER_AH__
|
#endif // __BOCHS_LISTENER_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __BOCHS_NO_ABORT_AH__
|
#ifndef __BOCHS_NO_ABORT_AH__
|
||||||
#define __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"
|
#include "bochs.h"
|
||||||
|
|
||||||
aspect BochsNoAbort {
|
aspect BochsNoAbort {
|
||||||
@ -37,5 +32,4 @@ aspect BochsNoAbort {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_BOCHS_NO_ABORT
|
|
||||||
#endif // __BOCHS_NO_ABORT_AH__
|
#endif // __BOCHS_NO_ABORT_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __BOCHS_NON_VERBOSE_AH__
|
#ifndef __BOCHS_NON_VERBOSE_AH__
|
||||||
#define __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"
|
#include "bochs.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -57,5 +52,4 @@ aspect BochsNonVerbose {
|
|||||||
: around () { }
|
: around () { }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_BOCHS_NON_VERBOSE
|
|
||||||
#endif // __BOCHS_NON_VERBOSE_AH__
|
#endif // __BOCHS_NON_VERBOSE_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __BREAKPOINTS_AH__
|
#ifndef __BREAKPOINTS_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
|
||||||
@ -29,5 +24,4 @@ aspect Breakpoints {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_EVENT_BREAKPOINTS
|
|
||||||
#endif // __BREAKPOINTS_AH__
|
#endif // __BREAKPOINTS_AH__
|
||||||
|
|||||||
@ -1,14 +1,11 @@
|
|||||||
#ifndef __CREDITS_AH__
|
#ifndef __CREDITS_AH__
|
||||||
#define __CREDITS_AH__
|
#define __CREDITS_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
#include "config/FailConfig.hpp"
|
|
||||||
|
|
||||||
#ifdef BUILD_BOCHS
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "config/FailConfig.hpp"
|
||||||
|
|
||||||
aspect Credits {
|
aspect Credits {
|
||||||
bool first;
|
bool first;
|
||||||
Credits() : first(true) {}
|
Credits() : first(true) {}
|
||||||
@ -31,5 +28,4 @@ aspect Credits {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BUILD_BOCHS
|
|
||||||
#endif // __CREDITS_AH__
|
#endif // __CREDITS_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __DISABLE_KEYBOARD_INTERRUPT_AH__
|
#ifndef __DISABLE_KEYBOARD_INTERRUPT_AH__
|
||||||
#define __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/iodev.h"
|
||||||
#include "iodev/keyboard.h"
|
#include "iodev/keyboard.h"
|
||||||
|
|
||||||
@ -22,5 +17,4 @@ aspect DisableKeyboardInterrupt {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_DISABLE_KEYB_INTERRUPTS
|
|
||||||
#endif // __DISABLE_KEYBOARD_INTERRUPT_AH__
|
#endif // __DISABLE_KEYBOARD_INTERRUPT_AH__
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
#ifndef __DISABLE_ADD_REMOVE_LOGFN_AH__
|
#ifndef __DISABLE_ADD_REMOVE_LOGFN_AH__
|
||||||
#define __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
|
/* Hack to prevent Bochs' logfunctions list (bochs.h) to overflow if the
|
||||||
* experiment restores simulator state more than ~1000 times.
|
* experiment restores simulator state more than ~1000 times.
|
||||||
*
|
*
|
||||||
@ -20,5 +16,4 @@ aspect DisableLogFunctions {
|
|||||||
advice execution (add_remove_logfn()) : around () { }
|
advice execution (add_remove_logfn()) : around () { }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BUILD_BOCHS
|
|
||||||
#endif // __DISABLE_ADD_REMOVE_LOGFN_AH__
|
#endif // __DISABLE_ADD_REMOVE_LOGFN_AH__
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
#ifndef __FAIL_BOCHS_INIT_AH__
|
#ifndef __FAIL_BOCHS_INIT_AH__
|
||||||
#define __FAIL_BOCHS_INIT_AH__
|
#define __FAIL_BOCHS_INIT_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
|
|
||||||
#ifdef BUILD_BOCHS
|
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
|
|
||||||
aspect FailBochsInit {
|
aspect FailBochsInit {
|
||||||
@ -14,5 +10,4 @@ aspect FailBochsInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
#endif // __FAIL_BOCHS_INIT_AH__
|
#endif // __FAIL_BOCHS_INIT_AH__
|
||||||
|
|||||||
@ -1,14 +1,10 @@
|
|||||||
#ifndef __FIREINTERRUPT_AH__
|
#ifndef __FIREINTERRUPT_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
#include "iodev/iodev.h"
|
#include "iodev/iodev.h"
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
|
|
||||||
aspect FireInterrupt {
|
aspect FireInterrupt {
|
||||||
@ -41,5 +37,4 @@ aspect InterruptDone {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_FIRE_INTERRUPTS
|
|
||||||
#endif // __FIREINTERRUPT_AH__
|
#endif // __FIREINTERRUPT_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __GUEST_SYS_COM_AH__
|
#ifndef __GUEST_SYS_COM_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
|
||||||
@ -29,5 +24,4 @@ aspect GuestSysCom {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_EVENT_GUESTSYS
|
|
||||||
#endif // __GUEST_SYS_COM_AH__
|
#endif // __GUEST_SYS_COM_AH__
|
||||||
|
|||||||
@ -1,16 +1,10 @@
|
|||||||
#ifndef __IOPORT_COM_AH__
|
#ifndef __IOPORT_COM_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
|
|
||||||
#include "BochsHelpers.hpp"
|
#include "BochsHelpers.hpp"
|
||||||
|
|
||||||
// TODO: ATM only capturing bytewise output (most common, I suppose)
|
// TODO: ATM only capturing bytewise output (most common, I suppose)
|
||||||
@ -35,5 +29,4 @@ aspect IOPortCom {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_EVENT_IOPORT
|
|
||||||
#endif // __IOPORT_COM_AH__
|
#endif // __IOPORT_COM_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __INTERRUPT_AH__
|
#ifndef __INTERRUPT_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
|
||||||
@ -35,5 +30,4 @@ aspect Interrupt {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_EVENT_INTERRUPT
|
|
||||||
#endif // __INTERRUPT_AH__
|
#endif // __INTERRUPT_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __INTERRUPT_SUPPRESSION_AH__
|
#ifndef __INTERRUPT_SUPPRESSION_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
|
||||||
@ -23,5 +18,4 @@ aspect InterruptSuppression {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_SUPPRESS_INTERRUPTS
|
|
||||||
#endif // __INTERRUPT_SUPPRESSION_AH__
|
#endif // __INTERRUPT_SUPPRESSION_AH__
|
||||||
|
|||||||
@ -1,16 +1,10 @@
|
|||||||
#ifndef __JUMP_AH__
|
#ifndef __JUMP_AH__
|
||||||
#define __JUMP_AH__
|
#define __JUMP_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
#include "config/FailConfig.hpp"
|
|
||||||
|
|
||||||
#if defined(BUILD_BOCHS) && defined(CONFIG_EVENT_JUMP)
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
#include "bochs.h"
|
#include "bochs.h"
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
@ -135,5 +129,4 @@ aspect Jump {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_EVENT_JUMP
|
|
||||||
#endif // __JUMP_AH__
|
#endif // __JUMP_AH__
|
||||||
|
|||||||
@ -1,12 +1,8 @@
|
|||||||
#ifndef __MEM_ACCESS_AH__
|
#ifndef __MEM_ACCESS_AH__
|
||||||
#define __MEM_ACCESS_AH__
|
#define __MEM_ACCESS_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
#include "config/FailConfig.hpp"
|
#include "config/FailConfig.hpp"
|
||||||
|
|
||||||
#ifdef BUILD_BOCHS
|
|
||||||
#if defined(CONFIG_EVENT_MEMREAD) || defined(CONFIG_EVENT_MEMWRITE)
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "bochs.h"
|
#include "bochs.h"
|
||||||
@ -157,6 +153,4 @@ aspect MemAccess {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_EVENT_MEMACCESS
|
|
||||||
#endif // BUILD_BOCHS
|
|
||||||
#endif // __MEM_ACCESS_AH__
|
#endif // __MEM_ACCESS_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __REBOOT_AH__
|
#ifndef __REBOOT_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
|
|
||||||
@ -25,5 +20,4 @@ aspect Reboot {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_SR_REBOOT
|
|
||||||
#endif // __REBOOT_AH__
|
#endif // __REBOOT_AH__
|
||||||
|
|||||||
@ -1,13 +1,7 @@
|
|||||||
#ifndef __RESTORE_STATE_AH__
|
#ifndef __RESTORE_STATE_AH__
|
||||||
#define __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 <iostream>
|
||||||
|
|
||||||
#include "bochs.h"
|
#include "bochs.h"
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
@ -23,5 +17,4 @@ aspect RestoreState {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_SR_RESTORE
|
|
||||||
#endif // __RESTORE_STATE_AH__
|
#endif // __RESTORE_STATE_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef _SAVE_STATE_AH__
|
#ifndef _SAVE_STATE_AH__
|
||||||
#define _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 "bochs.h"
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
@ -29,5 +24,4 @@ aspect SaveState {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_SR_SAVE
|
|
||||||
#endif // _SAVE_STATE_AH__
|
#endif // _SAVE_STATE_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __TRAP_AH__
|
#ifndef __TRAP_AH__
|
||||||
#define __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 "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
|
||||||
@ -22,5 +17,4 @@ aspect Trap {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_EVENT_TRAP
|
|
||||||
#endif // __TRAP_AH__
|
#endif // __TRAP_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __GEM5LISTENER_AH__
|
#ifndef __GEM5LISTENER_AH__
|
||||||
#define __GEM5LISTENER_AH__
|
#define __GEM5LISTENER_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
#include "config/FailConfig.hpp"
|
|
||||||
|
|
||||||
#if defined(BUILD_GEM5) && defined(CONFIG_EVENT_BREAKPOINTS)
|
|
||||||
|
|
||||||
#include "Gem5PCEvents.hpp"
|
#include "Gem5PCEvents.hpp"
|
||||||
#include "sim/system.hh"
|
#include "sim/system.hh"
|
||||||
|
|
||||||
@ -35,5 +30,4 @@ aspect Gem5Listener
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BUILD_GEM5 && CONFIG_EVENT_BREAKPOINTS
|
|
||||||
#endif // __GEM5LISTENER_AH__
|
#endif // __GEM5LISTENER_AH__
|
||||||
|
|||||||
@ -1,12 +1,7 @@
|
|||||||
#ifndef __OVPINIT_AH__
|
#ifndef __OVPINIT_AH__
|
||||||
#define __OVPINIT_AH__
|
#define __OVPINIT_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
|
|
||||||
#ifdef BUILD_OVP
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
|
|
||||||
aspect FailOVPInit {
|
aspect FailOVPInit {
|
||||||
@ -18,5 +13,4 @@ aspect FailOVPInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BUILD_OVP
|
|
||||||
#endif // __OVPINIT_AH__
|
#endif // __OVPINIT_AH__
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
#ifndef __BREAKPOINT_CONTROLLER_SLICE_AH__
|
#ifndef __BREAKPOINT_CONTROLLER_SLICE_AH__
|
||||||
#define __BREAKPOINT_CONTROLLER_SLICE_AH__
|
#define __BREAKPOINT_CONTROLLER_SLICE_AH__
|
||||||
|
|
||||||
#include "config/FailConfig.hpp"
|
|
||||||
|
|
||||||
#ifdef CONFIG_FAST_BREAKPOINTS
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "../Listener.hpp"
|
#include "../Listener.hpp"
|
||||||
|
|
||||||
@ -52,6 +48,4 @@ public:
|
|||||||
{ addListener(rli); return resume(); }
|
{ addListener(rli); return resume(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_FAST_BREAKPOINTS
|
|
||||||
|
|
||||||
#endif // __BREAKPOINT_CONTROLLER_SLICE_AH__
|
#endif // __BREAKPOINT_CONTROLLER_SLICE_AH__
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
#ifndef __BREAKPOINT_MANAGER_SLICE_AH__
|
#ifndef __BREAKPOINT_MANAGER_SLICE_AH__
|
||||||
#define __BREAKPOINT_MANAGER_SLICE_AH__
|
#define __BREAKPOINT_MANAGER_SLICE_AH__
|
||||||
|
|
||||||
#include "config/FailConfig.hpp"
|
|
||||||
|
|
||||||
#ifdef CONFIG_FAST_BREAKPOINTS
|
|
||||||
|
|
||||||
#include "BreakpointBuffer.hpp"
|
#include "BreakpointBuffer.hpp"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -51,6 +47,4 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_FAST_BREAKPOINTS
|
|
||||||
|
|
||||||
#endif // __BREAKPOINT_MANAGER_SLICE_AH__
|
#endif // __BREAKPOINT_MANAGER_SLICE_AH__
|
||||||
|
|||||||
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#include "config/FailConfig.hpp"
|
#include "config/FailConfig.hpp"
|
||||||
|
|
||||||
#ifdef CONFIG_FAST_BREAKPOINTS
|
|
||||||
|
|
||||||
#ifndef CONFIG_EVENT_BREAKPOINTS
|
#ifndef CONFIG_EVENT_BREAKPOINTS
|
||||||
#error Breakpoint events are required for fast breakpoints!
|
#error Breakpoint events are required for fast breakpoints!
|
||||||
#endif
|
#endif
|
||||||
@ -80,6 +78,4 @@ aspect FastBreakpoints {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CONFIG_FAST_BREAKPOINTS // see above
|
|
||||||
|
|
||||||
#endif // __FAST_BREAKPOINTS_AH__
|
#endif // __FAST_BREAKPOINTS_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __QEMULISTENER_AH__
|
#ifndef __QEMULISTENER_AH__
|
||||||
#define __QEMULISTENER_AH__
|
#define __QEMULISTENER_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
#include "config/FailConfig.hpp"
|
|
||||||
|
|
||||||
#if defined(BUILD_QEMU) && defined(CONFIG_EVENT_BREAKPOINTS)
|
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -56,5 +51,4 @@ aspect QEMUListener
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BUILD_QEMU && CONFIG_EVENT_BREAKPOINTS
|
|
||||||
#endif // __QEMULISTENER_AH__
|
#endif // __QEMULISTENER_AH__
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
#ifndef __T32LISTENER_AH__
|
#ifndef __T32LISTENER_AH__
|
||||||
#define __T32LISTENER_AH__
|
#define __T32LISTENER_AH__
|
||||||
|
|
||||||
#include "config/VariantConfig.hpp"
|
|
||||||
#include "config/FailConfig.hpp"
|
|
||||||
|
|
||||||
#if defined(BUILD_T32) && defined(CONFIG_EVENT_BREAKPOINTS)
|
|
||||||
|
|
||||||
#include "../SALInst.hpp"
|
#include "../SALInst.hpp"
|
||||||
|
|
||||||
aspect T32Listener
|
aspect T32Listener
|
||||||
@ -31,5 +26,4 @@ aspect T32Listener
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BUILD_T32 && CONFIG_EVENT_BREAKPOINTS
|
|
||||||
#endif // __T32LISTENER_AH__
|
#endif // __T32LISTENER_AH__
|
||||||
|
|||||||
4
src/dummy.ah
Normal file
4
src/dummy.ah
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
// dummy aspect header:
|
||||||
|
// Makes sure at least *one* .ah file is active, and ag++ is called with at
|
||||||
|
// least *one* -a parameter. Otherwise ag++ would take *all* .ah files in the
|
||||||
|
// project tree into account.
|
||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE ChecksumOOStuBSExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
## Setup desired protobuf descriptions HERE ##
|
## Setup desired protobuf descriptions HERE ##
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE CoolChecksumExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
## Setup desired protobuf descriptions HERE ##
|
## Setup desired protobuf descriptions HERE ##
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE EcosKernelTestExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
## Setup desired protobuf descriptions HERE ##
|
## Setup desired protobuf descriptions HERE ##
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
|
|||||||
@ -4,6 +4,7 @@ set(EXPERIMENT_TYPE FaultCoverageExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
#experiment sources
|
#experiment sources
|
||||||
set(MY_EXPERIMENT_SRCS
|
set(MY_EXPERIMENT_SRCS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE FireInterruptExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
#experiment sources
|
#experiment sources
|
||||||
set(MY_EXPERIMENT_SRCS
|
set(MY_EXPERIMENT_SRCS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE HSCSimpleExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
#experiment sources
|
#experiment sources
|
||||||
set(MY_EXPERIMENT_SRCS
|
set(MY_EXPERIMENT_SRCS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE L4SysExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
## Setup desired protobuf descriptions HERE ##
|
## Setup desired protobuf descriptions HERE ##
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE MHTestExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
## Setup desired protobuf descriptions HERE ##
|
## Setup desired protobuf descriptions HERE ##
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE PerfTestExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
#experiment sources
|
#experiment sources
|
||||||
set(MY_EXPERIMENT_SRCS
|
set(MY_EXPERIMENT_SRCS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE RAMpageExperiment)
|
|||||||
configure_file(../instantiate-experiment-indirect.ah.in
|
configure_file(../instantiate-experiment-indirect.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
rampage.proto
|
rampage.proto
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE RegressionTest)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
#experiment sources
|
#experiment sources
|
||||||
set(MY_EXPERIMENT_SRCS
|
set(MY_EXPERIMENT_SRCS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE TracingTest)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
set(MY_CAMPAIGN_SRCS
|
set(MY_CAMPAIGN_SRCS
|
||||||
experiment.hpp
|
experiment.hpp
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE VEZSExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
## Setup desired protobuf descriptions HERE ##
|
## Setup desired protobuf descriptions HERE ##
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
|
|||||||
@ -3,6 +3,7 @@ set(EXPERIMENT_TYPE WeatherMonitorExperiment)
|
|||||||
configure_file(../instantiate-experiment.ah.in
|
configure_file(../instantiate-experiment.ah.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah @ONLY
|
||||||
)
|
)
|
||||||
|
add_aspect_headers(${CMAKE_CURRENT_BINARY_DIR}/instantiate-${EXPERIMENT_NAME}.ah)
|
||||||
|
|
||||||
## Setup desired protobuf descriptions HERE ##
|
## Setup desired protobuf descriptions HERE ##
|
||||||
set(MY_PROTOS
|
set(MY_PROTOS
|
||||||
|
|||||||
Reference in New Issue
Block a user