summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-02-26 19:25:29 -0800
committerGitHub <noreply@github.com>2026-02-26 19:25:29 -0800
commitf898d75bf3fc83cfc6d2af77653ab108457ca0e1 (patch)
treefaebba126082c31471958641024cfd164bae4da9 /Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp
parent65f0dc9b2ecb08bec356f0ce931702900ba54acb (diff)
parentc1a26808ce5a09bcc08e029b71d4b1fb47bc4d57 (diff)
Merge pull request #14317 from JosJuice/jit-cache-macro-loop
Jit: Use RangeSet for physical_addresses
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp b/Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp
index 25701d26f4..61f5851380 100644
--- a/Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp
+++ b/Source/Core/DolphinQt/Debugger/JitBlockTableModel.cpp
@@ -236,7 +236,8 @@ QVariant JitBlockTableModel::DisplayRoleData(const QModelIndex& index) const
case Column::CodeBufferSize:
return QString::number(jit_block.originalSize * sizeof(UGeckoInstruction));
case Column::RepeatInstructions:
- return QString::number(jit_block.originalSize - jit_block.physical_addresses.size());
+ return QString::number(jit_block.originalSize - jit_block.physical_addresses.get_stats().first /
+ sizeof(UGeckoInstruction));
case Column::HostNearCodeSize:
return QString::number(jit_block.near_end - jit_block.near_begin);
case Column::HostFarCodeSize:
@@ -329,7 +330,9 @@ QVariant JitBlockTableModel::SortRoleData(const QModelIndex& index) const
case Column::CodeBufferSize:
return static_cast<qulonglong>(jit_block.originalSize);
case Column::RepeatInstructions:
- return static_cast<qulonglong>(jit_block.originalSize - jit_block.physical_addresses.size());
+ return static_cast<qulonglong>(jit_block.originalSize -
+ jit_block.physical_addresses.get_stats().first /
+ sizeof(UGeckoInstruction));
case Column::HostNearCodeSize:
return static_cast<qulonglong>(jit_block.near_end - jit_block.near_begin);
case Column::HostFarCodeSize: