Fix exit code for thumb mode in aarch64 fullsystem

This commit is contained in:
Andrea Fioraldi 2023-11-29 10:12:50 +01:00
parent 98a0d92463
commit c105904e66

View File

@ -50,7 +50,7 @@ int libafl_qemu_remove_breakpoint(target_ulong pc)
static THREAD_MODIFIER struct libafl_exit_reason last_exit_reason; static THREAD_MODIFIER struct libafl_exit_reason last_exit_reason;
static THREAD_MODIFIER bool expected_exit = false; static THREAD_MODIFIER bool expected_exit = false;
#if defined(TARGET_ARM) && !defined(TARGET_AARCH64) #if defined(TARGET_ARM)
#define THUMB_MASK(cpu, value) (value | cpu_env(cpu)->thumb) #define THUMB_MASK(cpu, value) (value | cpu_env(cpu)->thumb)
#else #else
#define THUMB_MASK(cpu, value) value #define THUMB_MASK(cpu, value) value