mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-29 11:45:30 +02:00
disable JIT service
This commit is contained in:
parent
5acadadaa2
commit
219920fbd0
4 changed files with 29 additions and 6 deletions
18
externals/cmake-modules/DetectPlatform.cmake
vendored
18
externals/cmake-modules/DetectPlatform.cmake
vendored
|
|
@ -154,6 +154,20 @@ endif()
|
||||||
|
|
||||||
# awesome
|
# awesome
|
||||||
if (PLATFORM_FREEBSD OR PLATFORM_DRAGONFLYBSD)
|
if (PLATFORM_FREEBSD OR PLATFORM_DRAGONFLYBSD)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/local/lib")
|
||||||
"${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SYSROOT}/usr/local/lib")
|
elseif (PLATFORM_EMSCRIPTEN)
|
||||||
|
set(EMSCRIPTEN_C_FLAGS "-s MEMORY64 -m64 -pipe -sMEMORY64=1")
|
||||||
|
set(EMSCRIPTEN_LINK_FLAGS "-sMEMORY64=1 -m64 -Wl,-mwasm64 -sASYNCIFY=1")
|
||||||
|
|
||||||
|
# This prevents FFmpeg and other libraries from assuming it's the host's CPU
|
||||||
|
# Additionally some Emscripten installs may not be very good... generally
|
||||||
|
set(EMSCRIPTEN_SYSTEM_PROCESSOR wasm)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EMSCRIPTEN_C_FLAGS}")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EMSCRIPTEN_C_FLAGS}")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EMSCRIPTEN_LINK_FLAGS}")
|
||||||
|
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} ${EMSCRIPTEN_LINK_FLAGS}")
|
||||||
|
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} ${EMSCRIPTEN_LINK_FLAGS}")
|
||||||
|
|
||||||
|
unset(EMSCRIPTEN_C_FLAGS)
|
||||||
|
unset(EMSCRIPTEN_LINK_FLAGS)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#if defined(__EMSCRIPTEN__) || defined(__wasi__)
|
||||||
// TODO: gdb stub compat with emscripten?
|
// TODO: gdb stub compat with emscripten?
|
||||||
#else
|
#else
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
|
|
@ -27,7 +27,9 @@
|
||||||
#include "common/thread.h"
|
#include "common/thread.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/debugger/debugger.h"
|
#include "core/debugger/debugger.h"
|
||||||
#ifndef __EMSCRIPTEN__
|
#if defined(__EMSCRIPTEN__) || defined(__wasi__)
|
||||||
|
// TODO: gdbstub with emscripten?
|
||||||
|
#else
|
||||||
#include "core/debugger/debugger_interface.h"
|
#include "core/debugger/debugger_interface.h"
|
||||||
#include "core/debugger/gdbstub.h"
|
#include "core/debugger/gdbstub.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -35,10 +37,10 @@
|
||||||
#include "core/hle/kernel/k_process.h"
|
#include "core/hle/kernel/k_process.h"
|
||||||
#include "core/hle/kernel/k_scheduler.h"
|
#include "core/hle/kernel/k_scheduler.h"
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#if defined(__EMSCRIPTEN__) || defined(__wasi__)
|
||||||
namespace Core {
|
namespace Core {
|
||||||
// Dummy
|
// Dummy
|
||||||
struct DebuggerImpl {
|
class DebuggerImpl {
|
||||||
char pad;
|
char pad;
|
||||||
};
|
};
|
||||||
Debugger::Debugger(Core::System& system, u16 port) {}
|
Debugger::Debugger(Core::System& system, u16 port) {}
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,10 @@ Services::Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system
|
||||||
for (auto const& e : std::vector<std::pair<std::string_view, void (*)(Core::System&)>>{
|
for (auto const& e : std::vector<std::pair<std::string_view, void (*)(Core::System&)>>{
|
||||||
{"audio", &Audio::LoopProcess},
|
{"audio", &Audio::LoopProcess},
|
||||||
{"FS", &FileSystem::LoopProcess},
|
{"FS", &FileSystem::LoopProcess},
|
||||||
|
// Must match with src/core/CMakeLists.txt for target_source of jit.cpp
|
||||||
|
#if defined(ARCHITECTURE_x86_64) || defined(ARCHITECTURE_arm64) || defined(ARCHITECTURE_riscv64) || defined(ARCHITECTURE_loongarch64)
|
||||||
{"jit", &JIT::LoopProcess},
|
{"jit", &JIT::LoopProcess},
|
||||||
|
#endif
|
||||||
{"ldn", &LDN::LoopProcess},
|
{"ldn", &LDN::LoopProcess},
|
||||||
{"Loader", &LDR::LoopProcess},
|
{"Loader", &LDR::LoopProcess},
|
||||||
{"nvservices", &Nvidia::LoopProcess},
|
{"nvservices", &Nvidia::LoopProcess},
|
||||||
|
|
|
||||||
|
|
@ -75,3 +75,7 @@ if (NOT MSVC)
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-parameter>
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-parameter>
|
||||||
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-missing-field-initializers>)
|
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-missing-field-initializers>)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (PLATFORM_EMSCRIPTEN)
|
||||||
|
set_target_properties(yuzu-cmd PROPERTIES LINK_FLAGS_RELEASE "--global-base=16777216")
|
||||||
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue