Skip to content

Commit

Permalink
Make failing loading/compiling binary translations into warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Dec 1, 2024
1 parent 3b5fcaf commit 402a90b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sandbox_bintr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ bool Sandbox::load_binary_translation(const String &shared_library_path) {
((CallbackFunction)register_translation)(libriscv_register_translation8);
}
# else
ERR_PRINT("Sandbox: Loading shared libraries has not been implemented on this platform.");
WARN_PRINT_ONCE("Sandbox: Loading shared libraries has not been implemented on this platform.");
# endif
// We don't need to do anything with the handle, as the shared library should self-register its functions
return true;
#else
ERR_PRINT("Sandbox: Binary translation is not enabled.");
WARN_PRINT_ONCE("Sandbox: Binary translation is not enabled.");
#endif
return false;
}
Expand Down Expand Up @@ -131,7 +131,7 @@ bool Sandbox::try_compile_binary_translation(String shared_library_path, const S
#elif defined(YEP_IS_OSX)
shared_library_path += ".dylib";
#else
ERR_PRINT("Sandbox: Loading shared libraries has not been implemented on this platform.");
WARN_PRINT_ONCE("Sandbox: Compiling binary translations has not been implemented on this platform.");
return false;
#endif
const String code = this->emit_binary_translation(ignore_instruction_limit, automatic_nbit_as);
Expand Down

0 comments on commit 402a90b

Please sign in to comment.