Browse Source
oopsie
Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/2890/head
lizzie
3 months ago
No known key found for this signature in database
GPG Key ID: 287378CADCAB13
4 changed files with
15 additions and
6 deletions
-
src/dynarmic/src/dynarmic/common/assert.h
-
src/dynarmic/src/dynarmic/frontend/A64/translate/impl/impl.cpp
-
src/dynarmic/tests/A32/testenv.h
-
src/dynarmic/tests/A64/testenv.h
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
# endif |
|
|
|
#endif |
|
|
|
#ifndef DEBUG_ASSERT |
|
|
|
# ifdef _DEBUG |
|
|
|
# ifndef NDEBUG |
|
|
|
# define DEBUG_ASSERT(_a_) ASSERT(_a_) |
|
|
|
# else |
|
|
|
# define DEBUG_ASSERT(_a_) |
|
|
|
|
|
|
|
@ -123,8 +123,9 @@ void TranslatorVisitor::SP(size_t bitsize, IR::U32U64 value) { |
|
|
|
case 64: |
|
|
|
ir.SetSP(value); |
|
|
|
break; |
|
|
|
default: |
|
|
|
UNREACHABLE(); |
|
|
|
} |
|
|
|
UNREACHABLE(); |
|
|
|
} |
|
|
|
|
|
|
|
IR::U128 TranslatorVisitor::V(size_t bitsize, Vec vec) { |
|
|
|
|
|
|
|
@ -97,7 +97,9 @@ public: |
|
|
|
MemoryWrite32(vaddr + 4, static_cast<u32>(value >> 32)); |
|
|
|
} |
|
|
|
|
|
|
|
void InterpreterFallback(u32 pc, size_t num_instructions) override { ASSERT(false, "InterpreterFallback({:08x} && {}) code = {:08x}", pc, num_instructions, *MemoryReadCode(pc)); } |
|
|
|
void InterpreterFallback(u32 pc, size_t num_instructions) override { |
|
|
|
UNREACHABLE(); //ASSERT(false && "InterpreterFallback({:08x} && {}) code = {:08x}", pc, num_instructions, *MemoryReadCode(pc)); |
|
|
|
} |
|
|
|
|
|
|
|
void CallSVC(std::uint32_t swi) override { |
|
|
|
UNREACHABLE(); //ASSERT(false && "CallSVC({})", swi); |
|
|
|
@ -188,7 +190,9 @@ public: |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
void InterpreterFallback(std::uint32_t pc, size_t num_instructions) override { ASSERT(false, "InterpreterFallback({:016x} && {})", pc, num_instructions); } |
|
|
|
void InterpreterFallback(std::uint32_t pc, size_t num_instructions) override { |
|
|
|
UNREACHABLE(); //ASSERT(false && "InterpreterFallback({:016x} && {})", pc, num_instructions); |
|
|
|
} |
|
|
|
|
|
|
|
void CallSVC(std::uint32_t swi) override { |
|
|
|
UNREACHABLE(); //ASSERT(false && "CallSVC({})", swi); |
|
|
|
|
|
|
|
@ -105,7 +105,9 @@ public: |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
void InterpreterFallback(u64 pc, size_t num_instructions) override { ASSERT(false, "InterpreterFallback({:016x} && {})", pc, num_instructions); } |
|
|
|
void InterpreterFallback(u64 pc, size_t num_instructions) override { |
|
|
|
UNREACHABLE(); // ASSERT(false&& "InterpreterFallback({:016x} && {})", pc, num_instructions); |
|
|
|
} |
|
|
|
|
|
|
|
void CallSVC(std::uint32_t swi) override { |
|
|
|
UNREACHABLE(); //ASSERT(false && "CallSVC({})", swi); |
|
|
|
@ -206,7 +208,9 @@ public: |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
void InterpreterFallback(u64 pc, size_t num_instructions) override { ASSERT(ignore_invalid_insn, "InterpreterFallback({:016x} && {})", pc, num_instructions); } |
|
|
|
void InterpreterFallback(u64 pc, size_t num_instructions) override { |
|
|
|
ASSERT(ignore_invalid_insn && "InterpreterFallback"); |
|
|
|
} |
|
|
|
|
|
|
|
void CallSVC(std::uint32_t swi) override { |
|
|
|
UNREACHABLE(); //ASSERT(false && "CallSVC({})", swi); |
|
|
|
|