qemu: MemWriteListener specialization
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1619 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -1,16 +1,27 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "../SALInst.hpp"
|
||||
#include "../SALConfig.hpp"
|
||||
#include "config/FailConfig.hpp"
|
||||
|
||||
struct CPUX86State; // fwd
|
||||
|
||||
extern "C" {
|
||||
|
||||
#include <stdio.h>
|
||||
//#include "qemu/failqemu.h"
|
||||
#include "qemu/failqemu.h"
|
||||
|
||||
struct CPUX86State;
|
||||
void failqemu_init(struct CPUX86State *env)
|
||||
void fail_init(struct CPUX86State *env)
|
||||
{
|
||||
printf("FailQEMU v%s\n", FAIL_VERSION);
|
||||
std::cout << "FailQEMU v" FAIL_VERSION << std::endl;
|
||||
fail::simulator.setCPUEnv(env);
|
||||
fail::simulator.startup();
|
||||
}
|
||||
|
||||
void fail_watchpoint_hit(struct CPUX86State *env, uint64_t addr, int width, int is_write)
|
||||
{
|
||||
std::cout << "fail_breakpoint_hit" << std::endl;
|
||||
// FIXME: instruction pointer
|
||||
fail::simulator.onMemoryAccess(addr, width, is_write == 1, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user