Browse Source
oops
Signed-off-by: lizzie <lizzie@eden-emu.dev>
liz-dynarmic-macos-fbsd-port
lizzie
2 months ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: 362DA3DC1901E080
1 changed files with
3 additions and
4 deletions
-
src/core/arm/nce/interpreter_visitor.cpp
|
|
|
@ -771,17 +771,16 @@ std::optional<u64> MatchAndExecuteOneInstruction(Core::Memory::Memory& memory, v |
|
|
|
// Store temporal to not break aliasing rules :)
|
|
|
|
u64 tmp_sp = CTX_SP; |
|
|
|
u64 tmp_pc = CTX_PC; |
|
|
|
InterpreterVisitor visitor(memory, regs, vregs, tmp_sp, tmp_pc); |
|
|
|
CTX_SP = tmp_sp; |
|
|
|
CTX_PC = tmp_pc; |
|
|
|
|
|
|
|
u32 instruction = memory.Read32(tmp_pc); |
|
|
|
bool was_executed = false; |
|
|
|
InterpreterVisitor visitor(memory, regs, vregs, tmp_sp, tmp_pc); |
|
|
|
if (auto decoder = Dynarmic::A64::Decode<VisitorBase>(instruction)) { |
|
|
|
was_executed = decoder->get().call(visitor, instruction); |
|
|
|
} else { |
|
|
|
LOG_ERROR(Core_ARM, "Unallocated encoding: {:#x}", instruction); |
|
|
|
} |
|
|
|
CTX_SP = tmp_sp; |
|
|
|
CTX_PC = tmp_pc; |
|
|
|
return was_executed ? std::optional<u64>(tmp_pc + 4) : std::nullopt; |
|
|
|
} |
|
|
|
|
|
|
|
|