mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
387bffda5e
Namespaces don't require the use of a semicolon. Silences a -Wextra-semi warning.
27 lines
682 B
C++
27 lines
682 B
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "arm_interface.h"
|
|
#include "common/common_types.h"
|
|
#include "common/logging/log.h"
|
|
#include "core/memory.h"
|
|
|
|
namespace Core {
|
|
void ARM_Interface::LogBacktrace() {
|
|
VAddr fp = GetReg(29);
|
|
VAddr lr = GetReg(30);
|
|
VAddr sp = GetReg(13);
|
|
VAddr pc = GetPC();
|
|
LOG_ERROR(Core_ARM, "Backtrace, sp={:016X}, pc={:016X}", sp, pc);
|
|
for (;;) {
|
|
LOG_ERROR(Core_ARM, "{:016X}", lr);
|
|
if (!fp) {
|
|
break;
|
|
}
|
|
lr = Memory::Read64(fp + 8) - 4;
|
|
fp = Memory::Read64(fp);
|
|
}
|
|
}
|
|
} // namespace Core
|