diff options
Diffstat (limited to 'src/core/hw/lcd.cpp')
| -rw-r--r-- | src/core/hw/lcd.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hw/lcd.cpp b/src/core/hw/lcd.cpp index 6f93709e3..0e3aa7cfd 100644 --- a/src/core/hw/lcd.cpp +++ b/src/core/hw/lcd.cpp | |||
| @@ -18,7 +18,7 @@ namespace LCD { | |||
| 18 | Regs g_regs; | 18 | Regs g_regs; |
| 19 | 19 | ||
| 20 | template <typename T> | 20 | template <typename T> |
| 21 | inline void Read(T &var, const u32 raw_addr) { | 21 | inline void Read(T& var, const u32 raw_addr) { |
| 22 | u32 addr = raw_addr - HW::VADDR_LCD; | 22 | u32 addr = raw_addr - HW::VADDR_LCD; |
| 23 | u32 index = addr / 4; | 23 | u32 index = addr / 4; |
| 24 | 24 | ||
| @@ -48,16 +48,17 @@ inline void Write(u32 addr, const T data) { | |||
| 48 | // This is happening *after* handling the write to make sure we properly catch all memory reads. | 48 | // This is happening *after* handling the write to make sure we properly catch all memory reads. |
| 49 | if (Pica::g_debug_context && Pica::g_debug_context->recorder) { | 49 | if (Pica::g_debug_context && Pica::g_debug_context->recorder) { |
| 50 | // addr + GPU VBase - IO VBase + IO PBase | 50 | // addr + GPU VBase - IO VBase + IO PBase |
| 51 | Pica::g_debug_context->recorder->RegisterWritten<T>(addr + HW::VADDR_LCD - 0x1EC00000 + 0x10100000, data); | 51 | Pica::g_debug_context->recorder->RegisterWritten<T>( |
| 52 | addr + HW::VADDR_LCD - 0x1EC00000 + 0x10100000, data); | ||
| 52 | } | 53 | } |
| 53 | } | 54 | } |
| 54 | 55 | ||
| 55 | // Explicitly instantiate template functions because we aren't defining this in the header: | 56 | // Explicitly instantiate template functions because we aren't defining this in the header: |
| 56 | 57 | ||
| 57 | template void Read<u64>(u64 &var, const u32 addr); | 58 | template void Read<u64>(u64& var, const u32 addr); |
| 58 | template void Read<u32>(u32 &var, const u32 addr); | 59 | template void Read<u32>(u32& var, const u32 addr); |
| 59 | template void Read<u16>(u16 &var, const u32 addr); | 60 | template void Read<u16>(u16& var, const u32 addr); |
| 60 | template void Read<u8>(u8 &var, const u32 addr); | 61 | template void Read<u8>(u8& var, const u32 addr); |
| 61 | 62 | ||
| 62 | template void Write<u64>(u32 addr, const u64 data); | 63 | template void Write<u64>(u32 addr, const u64 data); |
| 63 | template void Write<u32>(u32 addr, const u32 data); | 64 | template void Write<u32>(u32 addr, const u32 data); |