Browse Source
[debug] breakpoint instruction is unsupported on win32
remotes/1785372757367212240/tmp_refs/heads/variable-page-size
Exverge
4 weeks ago
No known key found for this signature in database
GPG Key ID: DAD399BCC5FB77E4
3 changed files with
4 additions and
4 deletions
-
src/common/assert.cpp
-
src/common/multi_level_page_table.inc
-
src/core/arm/nce/arm_nce.cpp
|
|
|
@ -16,7 +16,7 @@ __declspec(dllimport) void __stdcall DebugBreak(void); |
|
|
|
void AssertFailSoftImpl() { |
|
|
|
if (Settings::values.use_debug_asserts) { |
|
|
|
Common::Log::Stop(); |
|
|
|
#ifndef _MSC_VER
|
|
|
|
#ifndef _WIN32
|
|
|
|
# if defined(ARCHITECTURE_x86_64)
|
|
|
|
__asm__ __volatile__("int $3"); |
|
|
|
# elif defined(ARCHITECTURE_arm64)
|
|
|
|
@ -24,7 +24,7 @@ void AssertFailSoftImpl() { |
|
|
|
# else
|
|
|
|
__builtin_debugtrap(); |
|
|
|
# endif
|
|
|
|
#else // Clang/GCC ^^^ MSVC vvv
|
|
|
|
#else // Non-Windows Clang/GCC ^^^ Windows vvv
|
|
|
|
DebugBreak(); |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
// SPDX-FileCopyrightText: 2026 Eden Emulator Project |
|
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project |
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later |
|
|
|
|
|
|
|
// SPDX-FileCopyrightText: 2021 yuzu Emulator Project |
|
|
|
|
|
|
|
@ -455,7 +455,7 @@ HaltReason ArmNce::RunThread(Kernel::KThread* thread) { |
|
|
|
#if defined(__APPLE__)
|
|
|
|
ASSERT(pthread_setspecific(ContextKey, &thread_params) == 0); |
|
|
|
#elif defined(_WIN32)
|
|
|
|
ASSERT_MSG(TlsSetValue(ContextKey, &thread_params) == 0, "Failed to set TLS value: id {}, error {}", ContextKey, GetLastError()); |
|
|
|
ASSERT_MSG(TlsSetValue(ContextKey, &thread_params) != 0, "Failed to set TLS value: id {}, error {}", ContextKey, GetLastError()); |
|
|
|
#endif
|
|
|
|
|
|
|
|
// Move non-critical operations outside the locked section
|
|
|
|
|