2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

arm_interface: Mark variables as const where applicable in LogBacktrace()

Two of these variables have fixed values, so we can make that
immediately obvious from the get-go.
This commit is contained in:
Lioncash 2018-12-30 20:43:15 -05:00
parent 387bffda5e
commit 776ce5d74c

View file

@ -11,10 +11,11 @@ namespace Core {
void ARM_Interface::LogBacktrace() { void ARM_Interface::LogBacktrace() {
VAddr fp = GetReg(29); VAddr fp = GetReg(29);
VAddr lr = GetReg(30); VAddr lr = GetReg(30);
VAddr sp = GetReg(13); const VAddr sp = GetReg(13);
VAddr pc = GetPC(); const VAddr pc = GetPC();
LOG_ERROR(Core_ARM, "Backtrace, sp={:016X}, pc={:016X}", sp, pc); LOG_ERROR(Core_ARM, "Backtrace, sp={:016X}, pc={:016X}", sp, pc);
for (;;) { while (true) {
LOG_ERROR(Core_ARM, "{:016X}", lr); LOG_ERROR(Core_ARM, "{:016X}", lr);
if (!fp) { if (!fp) {
break; break;