Merge branch 'dev' into systemz
This commit is contained in:
@ -20,6 +20,8 @@ if (NOT UNICORN_ARCH)
|
||||
set(UNICORN_ARCH "x86 arm aarch64 riscv mips sparc m68k ppc s390x")
|
||||
endif()
|
||||
|
||||
option(UNICORN_TRACER "Trace unicorn execution" OFF)
|
||||
|
||||
string(TOUPPER ${UNICORN_ARCH} UNICORN_ARCH)
|
||||
string(REPLACE " " ";" UNICORN_ARCH_LIST ${UNICORN_ARCH})
|
||||
|
||||
@ -210,6 +212,9 @@ else()
|
||||
if (UNICORN_FUZZ)
|
||||
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} ${CMAKE_C_FLAGS}")
|
||||
endif()
|
||||
if(UNICORN_TRACER)
|
||||
set (EXTRA_CFLAGS "${EXTRA_CFLAGS} -DUNICORN_TRACER")
|
||||
endif()
|
||||
|
||||
set(TARGET_LIST "--target-list=")
|
||||
if (UNICORN_HAS_X86)
|
||||
@ -426,6 +431,11 @@ else()
|
||||
# Log and pow
|
||||
target_link_libraries(x86_64-softmmu m)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(x86_64-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_ARM)
|
||||
@ -464,6 +474,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(arm-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(armeb-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -498,6 +512,11 @@ else()
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/qemu/target/arm
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(armeb-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_AARCH64)
|
||||
@ -542,6 +561,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(aarch64-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(aarch64eb-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -582,6 +605,11 @@ else()
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/qemu/target/arm
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(aarch64eb-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_M68K)
|
||||
@ -612,6 +640,11 @@ else()
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/qemu/target/m68k
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(m68k-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_MIPS)
|
||||
@ -647,6 +680,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(mips-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(mipsel-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -679,6 +716,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(mipsel-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(mips64-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -711,6 +752,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(mips64-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(mips64el-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -742,6 +787,11 @@ else()
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/qemu/target/mips
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(mips64el-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_SPARC)
|
||||
@ -776,6 +826,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(sparc-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(sparc64-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -807,6 +861,11 @@ else()
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/qemu/target/sparc
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(sparc64-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_PPC)
|
||||
@ -854,6 +913,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(ppc-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(ppc64-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -901,6 +964,11 @@ else()
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/qemu/target/ppc
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(ppc64-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_RISCV)
|
||||
@ -933,6 +1001,10 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(riscv32-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
add_library(riscv64-softmmu
|
||||
${UNICORN_ARCH_COMMON}
|
||||
|
||||
@ -961,6 +1033,11 @@ else()
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}/qemu/target/riscv
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(riscv64-softmmu PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if (UNICORN_HAS_S390X)
|
||||
@ -1179,6 +1256,15 @@ set(UNICORN_TEST_FILE ${UNICORN_TEST_FILE} test_mem)
|
||||
set(UNICORN_TEST_FILE ${UNICORN_TEST_FILE} test_ctl)
|
||||
set(UNICORN_SAMPLE_FILE ${UNICORN_SAMPLE_FILE} sample_ctl)
|
||||
|
||||
if(UNICORN_TRACER)
|
||||
target_compile_options(unicorn-common PRIVATE -DUNICORN_TRACER)
|
||||
target_compile_options(unicorn PRIVATE -DUNICORN_TRACER)
|
||||
endif()
|
||||
|
||||
target_compile_options(unicorn-common PRIVATE
|
||||
${UNICORN_COMPILE_OPTIONS}
|
||||
)
|
||||
|
||||
target_compile_options(unicorn PRIVATE
|
||||
${UNICORN_COMPILE_OPTIONS}
|
||||
)
|
||||
|
Reference in New Issue
Block a user