Fix usermode builds
This commit is contained in:
parent
5d31b09a11
commit
4605ea753b
@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
//// --- Begin LibAFL code ---
|
//// --- Begin LibAFL code ---
|
||||||
|
|
||||||
|
#include "libafl_extras/exit.h"
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
|
||||||
#include "sysemu/runstate.h"
|
#include "sysemu/runstate.h"
|
||||||
@ -49,8 +51,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "libafl_extras/exit.h"
|
|
||||||
|
|
||||||
void libafl_save_qemu_snapshot(char *name, bool sync);
|
void libafl_save_qemu_snapshot(char *name, bool sync);
|
||||||
void libafl_load_qemu_snapshot(char *name, bool sync);
|
void libafl_load_qemu_snapshot(char *name, bool sync);
|
||||||
|
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
__thread int libafl_qemu_break_asap = 0;
|
__thread int libafl_qemu_break_asap = 0;
|
||||||
__thread CPUState* libafl_breakpoint_cpu;
|
__thread CPUState* libafl_breakpoint_cpu;
|
||||||
__thread vaddr libafl_breakpoint_pc;
|
__thread vaddr libafl_breakpoint_pc;
|
||||||
__thread static struct libafl_exit_reason last_exit_reason;
|
static __thread struct libafl_exit_reason last_exit_reason;
|
||||||
#else
|
#else
|
||||||
static struct libafl_exit_reason last_exit_reason;
|
static struct libafl_exit_reason last_exit_reason;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TARGET_ARM
|
#if defined(TARGET_ARM) && !defined(TARGET_AARCH64)
|
||||||
#define THUMB_MASK(value) (value | cpu_env(libafl_breakpoint_cpu)->thumb)
|
#define THUMB_MASK(value) (value | cpu_env(libafl_breakpoint_cpu)->thumb)
|
||||||
#else
|
#else
|
||||||
#define THUMB_MASK(value) value
|
#define THUMB_MASK(value) value
|
||||||
|
@ -2,5 +2,5 @@ specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files(
|
|||||||
'syx-snapshot/device-save.c',
|
'syx-snapshot/device-save.c',
|
||||||
'syx-snapshot/syx-snapshot.c',
|
'syx-snapshot/syx-snapshot.c',
|
||||||
'syx-snapshot/channel-buffer-writeback.c',
|
'syx-snapshot/channel-buffer-writeback.c',
|
||||||
'exit.c',
|
|
||||||
)])
|
)])
|
||||||
|
specific_ss.add(files('exit.c'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user