Skip to content

Commit

Permalink
Show when binary translation is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Jun 5, 2024
1 parent 7fbd594 commit 2f136a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ if (SANITIZE)
target_link_libraries(engine --rtlib=compiler-rt -lgcc_s)
endif()
endif()

message(STATUS "Binary translation is ${RISCV_BINARY_TRANSLATION}")
5 changes: 5 additions & 0 deletions engine/src/script/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ Script::Script(
}
this->reset();
this->initialize();

if (machine().is_binary_translation_enabled())
{
strf::to(stdout)(">>> ", name, ": Binary translation enabled\n");
}
}

Script::Script(
Expand Down
2 changes: 1 addition & 1 deletion ext/libriscv

0 comments on commit 2f136a5

Please sign in to comment.