Skip to content
This repository was archived by the owner on Feb 3, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ message(STATUS "WITH_GUEST: ${WITH_GUEST}")
if(WITH_GUEST MATCHES "i386")
set(TARGET_LONG_BITS "32")
set(TARGET_INSN_START_EXTRA_WORDS "1")
set(TARGET_I386 "1")
elseif(WITH_GUEST MATCHES "x86_64")
set(TARGET_LONG_BITS "64")
set(TARGET_INSN_START_EXTRA_WORDS "1")
set(TARGET_X86_64 "1")
elseif(WITH_GUEST MATCHES "arm")
set(TARGET_LONG_BITS "32")
set(TARGET_INSN_START_EXTRA_WORDS "2")
set(TARGET_ARM "1")
else()
message(FATAL_ERROR "Incorrect target ${WITH_GUEST}")
endif()
Expand Down
3 changes: 3 additions & 0 deletions include/tcg/helper-head.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

#define HELPER(name) glue(helper_, name)

// XXX: this is in softfloat.
typedef uint32_t float32;
typedef uint64_t float64;
/* Some types that make sense in C, but not for TCG. */
#define dh_alias_i32 i32
#define dh_alias_s32 i32
Expand Down
Loading