diff --git a/include/dynarmic/callbacks.h b/include/dynarmic/callbacks.h index 9e127717..0ec6436b 100644 --- a/include/dynarmic/callbacks.h +++ b/include/dynarmic/callbacks.h @@ -32,7 +32,7 @@ struct UserCallbacks { void (*InterpreterFallback)(std::uint32_t pc, Jit* jit, void* user_arg); void* user_arg = nullptr; - bool (*CallSVC)(std::uint32_t swi); + void (*CallSVC)(std::uint32_t swi); // Page Table static constexpr std::size_t PAGE_BITS = 12; diff --git a/tests/arm/fuzz_arm.cpp b/tests/arm/fuzz_arm.cpp index da5576d8..86b3b3be 100644 --- a/tests/arm/fuzz_arm.cpp +++ b/tests/arm/fuzz_arm.cpp @@ -122,7 +122,7 @@ static void Fail() { static Dynarmic::UserCallbacks GetUserCallbacks() { Dynarmic::UserCallbacks user_callbacks{}; user_callbacks.InterpreterFallback = &InterpreterFallback; - user_callbacks.CallSVC = (bool (*)(u32)) &Fail; + user_callbacks.CallSVC = (void (*)(u32)) &Fail; user_callbacks.IsReadOnlyMemory = &IsReadOnlyMemory; user_callbacks.MemoryRead8 = &MemoryRead8; user_callbacks.MemoryRead16 = &MemoryRead16; diff --git a/tests/arm/fuzz_thumb.cpp b/tests/arm/fuzz_thumb.cpp index b729db11..d7f92e20 100644 --- a/tests/arm/fuzz_thumb.cpp +++ b/tests/arm/fuzz_thumb.cpp @@ -110,7 +110,7 @@ static void Fail() { static Dynarmic::UserCallbacks GetUserCallbacks() { Dynarmic::UserCallbacks user_callbacks{}; user_callbacks.InterpreterFallback = &InterpreterFallback; - user_callbacks.CallSVC = (bool (*)(u32)) &Fail; + user_callbacks.CallSVC = (void (*)(u32)) &Fail; user_callbacks.IsReadOnlyMemory = &IsReadOnlyMemory; user_callbacks.MemoryRead8 = &MemoryRead8; user_callbacks.MemoryRead16 = &MemoryRead16;