Skip to content

Commit 4605ea7

Browse files
Fix usermode builds
1 parent 5d31b09 commit 4605ea7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

accel/tcg/tcg-runtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838
//// --- Begin LibAFL code ---
3939

40+
#include "libafl_extras/exit.h"
41+
4042
#ifndef CONFIG_USER_ONLY
4143

4244
#include "sysemu/runstate.h"
@@ -49,8 +51,6 @@
4951
#include <stdlib.h>
5052
#include <string.h>
5153

52-
#include "libafl_extras/exit.h"
53-
5454
void libafl_save_qemu_snapshot(char *name, bool sync);
5555
void libafl_load_qemu_snapshot(char *name, bool sync);
5656

libafl_extras/exit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
__thread int libafl_qemu_break_asap = 0;
1010
__thread CPUState* libafl_breakpoint_cpu;
1111
__thread vaddr libafl_breakpoint_pc;
12-
__thread static struct libafl_exit_reason last_exit_reason;
12+
static __thread struct libafl_exit_reason last_exit_reason;
1313
#else
1414
static struct libafl_exit_reason last_exit_reason;
1515
#endif
1616

17-
#ifdef TARGET_ARM
17+
#if defined(TARGET_ARM) && !defined(TARGET_AARCH64)
1818
#define THUMB_MASK(value) (value | cpu_env(libafl_breakpoint_cpu)->thumb)
1919
#else
2020
#define THUMB_MASK(value) value

libafl_extras/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files(
22
'syx-snapshot/device-save.c',
33
'syx-snapshot/syx-snapshot.c',
44
'syx-snapshot/channel-buffer-writeback.c',
5-
'exit.c',
65
)])
6+
specific_ss.add(files('exit.c'))

0 commit comments

Comments
 (0)