diff options
| author | 2015-08-11 22:32:39 +0100 | |
|---|---|---|
| committer | 2015-08-11 22:38:44 +0100 | |
| commit | 5115d0177ed9f77b091adbbbfd22f2f0a568a4bb (patch) | |
| tree | 3a243eee2146980bcbd708a552ca082d172eeda7 /src/citra_qt/debugger | |
| parent | Merge pull request #1028 from aroulin/arm-disas-media-instr (diff) | |
| download | yuzu-5115d0177ed9f77b091adbbbfd22f2f0a568a4bb.tar.gz yuzu-5115d0177ed9f77b091adbbbfd22f2f0a568a4bb.tar.xz yuzu-5115d0177ed9f77b091adbbbfd22f2f0a568a4bb.zip | |
ARM Core, Video Core, CitraQt, Citrace: Use CommonTypes types instead of the standard u?int*_t types.
Diffstat (limited to 'src/citra_qt/debugger')
| -rw-r--r-- | src/citra_qt/debugger/callstack.cpp | 8 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_tracing.cpp | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/citra_qt/debugger/callstack.cpp b/src/citra_qt/debugger/callstack.cpp index 6799ce844..e97e81b65 100644 --- a/src/citra_qt/debugger/callstack.cpp +++ b/src/citra_qt/debugger/callstack.cpp | |||
| @@ -4,12 +4,14 @@ | |||
| 4 | 4 | ||
| 5 | #include <QStandardItemModel> | 5 | #include <QStandardItemModel> |
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | ||
| 8 | #include "common/symbols.h" | ||
| 9 | |||
| 7 | #include "callstack.h" | 10 | #include "callstack.h" |
| 8 | 11 | ||
| 9 | #include "core/core.h" | 12 | #include "core/core.h" |
| 10 | #include "core/arm/arm_interface.h" | 13 | #include "core/arm/arm_interface.h" |
| 11 | #include "core/memory.h" | 14 | #include "core/memory.h" |
| 12 | #include "common/symbols.h" | ||
| 13 | #include "core/arm/disassembler/arm_disasm.h" | 15 | #include "core/arm/disassembler/arm_disasm.h" |
| 14 | 16 | ||
| 15 | CallstackWidget::CallstackWidget(QWidget* parent): QDockWidget(parent) | 17 | CallstackWidget::CallstackWidget(QWidget* parent): QDockWidget(parent) |
| @@ -49,8 +51,8 @@ void CallstackWidget::OnDebugModeEntered() | |||
| 49 | { | 51 | { |
| 50 | std::string name; | 52 | std::string name; |
| 51 | // ripped from disasm | 53 | // ripped from disasm |
| 52 | uint8_t cond = (insn >> 28) & 0xf; | 54 | u8 cond = (insn >> 28) & 0xf; |
| 53 | uint32_t i_offset = insn & 0xffffff; | 55 | u32 i_offset = insn & 0xffffff; |
| 54 | // Sign-extend the 24-bit offset | 56 | // Sign-extend the 24-bit offset |
| 55 | if ((i_offset >> 23) & 1) | 57 | if ((i_offset >> 23) & 1) |
| 56 | i_offset |= 0xff000000; | 58 | i_offset |= 0xff000000; |
diff --git a/src/citra_qt/debugger/graphics_tracing.cpp b/src/citra_qt/debugger/graphics_tracing.cpp index 3f20f149d..f80cb7493 100644 --- a/src/citra_qt/debugger/graphics_tracing.cpp +++ b/src/citra_qt/debugger/graphics_tracing.cpp | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | 14 | ||
| 15 | #include <boost/range/algorithm/copy.hpp> | 15 | #include <boost/range/algorithm/copy.hpp> |
| 16 | 16 | ||
| 17 | #include "common/common_types.h" | ||
| 18 | |||
| 17 | #include "core/hw/gpu.h" | 19 | #include "core/hw/gpu.h" |
| 18 | #include "core/hw/lcd.h" | 20 | #include "core/hw/lcd.h" |
| 19 | 21 | ||
| @@ -66,14 +68,14 @@ void GraphicsTracingWidget::StartRecording() { | |||
| 66 | 68 | ||
| 67 | // Encode floating point numbers to 24-bit values | 69 | // Encode floating point numbers to 24-bit values |
| 68 | // TODO: Drop this explicit conversion once we store float24 values bit-correctly internally. | 70 | // TODO: Drop this explicit conversion once we store float24 values bit-correctly internally. |
| 69 | std::array<uint32_t, 4 * 16> default_attributes; | 71 | std::array<u32, 4 * 16> default_attributes; |
| 70 | for (unsigned i = 0; i < 16; ++i) { | 72 | for (unsigned i = 0; i < 16; ++i) { |
| 71 | for (unsigned comp = 0; comp < 3; ++comp) { | 73 | for (unsigned comp = 0; comp < 3; ++comp) { |
| 72 | default_attributes[4 * i + comp] = nihstro::to_float24(Pica::g_state.vs.default_attributes[i][comp].ToFloat32()); | 74 | default_attributes[4 * i + comp] = nihstro::to_float24(Pica::g_state.vs.default_attributes[i][comp].ToFloat32()); |
| 73 | } | 75 | } |
| 74 | } | 76 | } |
| 75 | 77 | ||
| 76 | std::array<uint32_t, 4 * 96> vs_float_uniforms; | 78 | std::array<u32, 4 * 96> vs_float_uniforms; |
| 77 | for (unsigned i = 0; i < 96; ++i) | 79 | for (unsigned i = 0; i < 96; ++i) |
| 78 | for (unsigned comp = 0; comp < 3; ++comp) | 80 | for (unsigned comp = 0; comp < 3; ++comp) |
| 79 | vs_float_uniforms[4 * i + comp] = nihstro::to_float24(Pica::g_state.vs.uniforms.f[i][comp].ToFloat32()); | 81 | vs_float_uniforms[4 * i + comp] = nihstro::to_float24(Pica::g_state.vs.uniforms.f[i][comp].ToFloat32()); |