start loongarch compile
fix: modify the code to pass compile add: add code for tcg_out_op, tcg_can_emit_vec_op, tcg_target_op_def to support new tcg_op fix: fix bugs related to epilogue and ret_addr fix: fix bug in qemu_ld_slow_path, the return register is wrong
This commit is contained in:
@@ -233,6 +233,11 @@ else()
|
||||
set(UNICORN_TARGET_ARCH "tricore")
|
||||
break()
|
||||
endif()
|
||||
string(FIND ${UC_COMPILER_MACRO} "loongarch64" UC_RET)
|
||||
if (${UC_RET} GREATER_EQUAL "0")
|
||||
set(UNICORN_TARGET_ARCH "loongarch64")
|
||||
break()
|
||||
endif()
|
||||
message(FATAL_ERROR "Unknown host compiler: ${CMAKE_C_COMPILER}.")
|
||||
endwhile(TRUE)
|
||||
endif()
|
||||
@@ -315,6 +320,12 @@ else()
|
||||
set(TARGET_LIST "${TARGET_LIST} ")
|
||||
|
||||
# GEN config-host.mak & target directories
|
||||
# MESSAGE(STATUS "sh ${CMAKE_CURRENT_SOURCE_DIR}/qemu/configure
|
||||
# --cc=${CMAKE_C_COMPILER}
|
||||
# ${EXTRA_CFLAGS}
|
||||
# ${TARGET_LIST}
|
||||
# WORKING_DIRECTORY ${CMAKE_BINARY_DIR}"
|
||||
# )
|
||||
execute_process(COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/qemu/configure
|
||||
--cc=${CMAKE_C_COMPILER}
|
||||
${EXTRA_CFLAGS}
|
||||
|
||||
Reference in New Issue
Block a user