summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2025-06-20 08:56:15 +0200
committerJosJuice <josjuice@gmail.com>2026-02-01 12:39:33 +0100
commit08884746ed04bee0c607ea8a393264ec6e37ba3f (patch)
tree4de47ee1d81cfe0cd612c0cdcdc704a6ba46546b /Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
parent183e12b055272b4d268cfec03d0027f5493a3785 (diff)
Core: Detect SR updates
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/RegisterWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/RegisterWidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
index 8bb9d88291..35253b49cd 100644
--- a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
@@ -15,6 +15,7 @@
#include "Core/Core.h"
#include "Core/Debugger/CodeTrace.h"
#include "Core/HW/ProcessorInterface.h"
+#include "Core/PowerPC/MMU.h"
#include "Core/PowerPC/PowerPC.h"
#include "Core/System.h"
#include "DolphinQt/Host.h"
@@ -405,7 +406,10 @@ void RegisterWidget::PopulateTable()
AddRegister(
i, 7, RegisterType::sr, "SR" + std::to_string(i),
[this, i] { return m_system.GetPPCState().sr[i]; },
- [this, i](u64 value) { m_system.GetPPCState().sr[i] = value; });
+ [this, i](u64 value) {
+ m_system.GetPPCState().sr[i] = value;
+ m_system.GetMMU().SRUpdated();
+ });
}
// Special registers