qemu: Fail* startup hook
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1616 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -50,7 +50,7 @@ if(BUILD_QEMU)
|
||||
# make sure aspects don't fail to match in entry.cc
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src/core ${CMAKE_BINARY_DIR}/src/core)
|
||||
add_executable(fail-client "${qemu_lib}")
|
||||
target_link_libraries(fail-client "${qemu_lib}" fail ${qemu_library_dependencies})
|
||||
target_link_libraries(fail-client -Wl,-whole-archive "${qemu_lib}" -Wl,-no-whole-archive fail ${qemu_library_dependencies})
|
||||
install(TARGETS fail-client RUNTIME DESTINATION bin)
|
||||
|
||||
# a few QEMU-specific passthrough targets:
|
||||
|
||||
@ -34,5 +34,7 @@
|
||||
#cmakedefine CLIENT_RAND_BACKOFF_TSTART @CLIENT_RAND_BACKOFF_TSTART@
|
||||
#cmakedefine CLIENT_RAND_BACKOFF_TEND @CLIENT_RAND_BACKOFF_TEND@
|
||||
#cmakedefine CLIENT_RETRY_COUNT @CLIENT_RETRY_COUNT@
|
||||
#cmakedefine PROJECT_VERSION "@PROJECT_VERSION@"
|
||||
#define FAIL_VERSION PROJECT_VERSION
|
||||
|
||||
#endif // __FAIL_CONFIG_HPP__
|
||||
|
||||
@ -41,6 +41,7 @@ elseif(BUILD_QEMU)
|
||||
SimulatorController.cc
|
||||
qemu/QEMUController.cc
|
||||
qemu/QEMUListener.cc
|
||||
qemu/wrappers.cc
|
||||
)
|
||||
endif(BUILD_BOCHS)
|
||||
|
||||
|
||||
16
src/core/sal/qemu/wrappers.cc
Normal file
16
src/core/sal/qemu/wrappers.cc
Normal file
@ -0,0 +1,16 @@
|
||||
#include "../SALInst.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
extern "C" {
|
||||
|
||||
#include <stdio.h>
|
||||
//#include "qemu/failqemu.h"
|
||||
|
||||
struct CPUX86State;
|
||||
void failqemu_init(struct CPUX86State *env)
|
||||
{
|
||||
printf("FailQEMU v%s\n", FAIL_VERSION);
|
||||
fail::simulator.startup();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user