[nce] fix macos
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
bdf1d80544
commit
f19a66d2d3
2 changed files with 3 additions and 4 deletions
|
@ -339,8 +339,7 @@ elseif (APPLE)
|
|||
"${MACH_EXC_DEFS_DIR}/mach/mach_exc.defs"
|
||||
)
|
||||
target_sources(dynarmic PRIVATE
|
||||
backend/exception_handler_macos.cpp
|
||||
backend/exception_handler_macos_mig.c
|
||||
backend/exception_handler_posix.cpp
|
||||
)
|
||||
endif()
|
||||
elseif (UNIX)
|
||||
|
|
|
@ -191,11 +191,11 @@ private:
|
|||
ExceptionHandler::ExceptionHandler() = default;
|
||||
ExceptionHandler::~ExceptionHandler() = default;
|
||||
|
||||
#if defined(MCL_ARCHITECTURE_X86_64)
|
||||
#if defined(ARCHITECTURE_x86_64)
|
||||
void ExceptionHandler::Register(X64::BlockOfCode& code) {
|
||||
impl = std::make_unique<Impl>(mcl::bit_cast<u64>(code.getCode()), code.GetTotalCodeSize());
|
||||
}
|
||||
#elif defined(MCL_ARCHITECTURE_ARM64)
|
||||
#elif defined(ARCHITECTURE_arm64)
|
||||
void ExceptionHandler::Register(oaknut::CodeBlock& mem, std::size_t size) {
|
||||
impl = std::make_unique<Impl>(mcl::bit_cast<u64>(mem.ptr()), size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue