From ec4c019a7b1478cb124ea957435d4015c234e1a5 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 8 Oct 2018 01:47:10 +0100 Subject: [PATCH 1/2] FIFOAnalyzer: fix printing of XF registers --- Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp index 2f53b8445a..6461f33244 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp @@ -242,10 +242,10 @@ void FIFOAnalyzer::UpdateDetails() const u8* stream_start = objectdata; const u8* stream_end = stream_start + streamSize * 4; - new_label = QStringLiteral("XF %1 ").arg(cmd2, 16, 8, QLatin1Char('0')); + new_label = QStringLiteral("XF %1 ").arg(cmd2, 8, 16, QLatin1Char('0')); while (objectdata < stream_end) { - new_label += QStringLiteral("%1").arg(*objectdata++, 16, 2, QLatin1Char('0')); + new_label += QStringLiteral("%1").arg(*objectdata++, 2, 16, QLatin1Char('0')); if (((objectdata - stream_start) % 4) == 0) new_label += QLatin1Char(' '); From 09385b954262d866569b3ea9a53abc101307fe95 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 8 Oct 2018 01:48:34 +0100 Subject: [PATCH 2/2] FIFOAnalyzer: print BP registers without X suffix --- Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp index 6461f33244..8fcb855ddc 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp @@ -281,7 +281,7 @@ void FIFOAnalyzer::UpdateDetails() { u32 cmd2 = Common::swap32(objectdata); objectdata += 4; - new_label = QStringLiteral("BP %02X %06X") + new_label = QStringLiteral("BP %02 %06") .arg(cmd2 >> 24, 2, 16, QLatin1Char('0')) .arg(cmd2 & 0xFFFFFF, 6, 16, QLatin1Char('0')); }