summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-31 02:43:15 +0100
committerLioncash <mathew1800@gmail.com>2018-12-31 02:43:17 +0100
commit776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0 (patch)
tree425c35e02471ab8aaa747ba939148f0b3b9c65cf
parentarm_interface: Remove unnecessary semicolon (diff)
downloadyuzu-776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0.tar
yuzu-776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0.tar.gz
yuzu-776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0.tar.bz2
yuzu-776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0.tar.lz
yuzu-776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0.tar.xz
yuzu-776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0.tar.zst
yuzu-776ce5d74c1dd5a6f81a1461e2609e01ea29d1c0.zip
-rw-r--r--src/core/arm/arm_interface.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/arm/arm_interface.cpp b/src/core/arm/arm_interface.cpp
index f01cc4b6e..8ab605d21 100644
--- a/src/core/arm/arm_interface.cpp
+++ b/src/core/arm/arm_interface.cpp
@@ -11,10 +11,11 @@ namespace Core {
void ARM_Interface::LogBacktrace() {
VAddr fp = GetReg(29);
VAddr lr = GetReg(30);
- VAddr sp = GetReg(13);
- VAddr pc = GetPC();
+ const VAddr sp = GetReg(13);
+ const VAddr pc = GetPC();
+
LOG_ERROR(Core_ARM, "Backtrace, sp={:016X}, pc={:016X}", sp, pc);
- for (;;) {
+ while (true) {
LOG_ERROR(Core_ARM, "{:016X}", lr);
if (!fp) {
break;