mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 07:40:06 +00:00
HW: Fix a stupid issue which led to unknown register reads/writes.
This commit is contained in:
parent
c4e11519af
commit
256bdfb579
@ -15,6 +15,21 @@ template <typename T>
|
|||||||
inline void Read(T &var, const u32 addr) {
|
inline void Read(T &var, const u32 addr) {
|
||||||
switch (addr & 0xFFFFF000) {
|
switch (addr & 0xFFFFF000) {
|
||||||
case VADDR_GPU:
|
case VADDR_GPU:
|
||||||
|
case VADDR_GPU + 0x1000:
|
||||||
|
case VADDR_GPU + 0x2000:
|
||||||
|
case VADDR_GPU + 0x3000:
|
||||||
|
case VADDR_GPU + 0x4000:
|
||||||
|
case VADDR_GPU + 0x5000:
|
||||||
|
case VADDR_GPU + 0x6000:
|
||||||
|
case VADDR_GPU + 0x7000:
|
||||||
|
case VADDR_GPU + 0x8000:
|
||||||
|
case VADDR_GPU + 0x9000:
|
||||||
|
case VADDR_GPU + 0xA000:
|
||||||
|
case VADDR_GPU + 0xB000:
|
||||||
|
case VADDR_GPU + 0xC000:
|
||||||
|
case VADDR_GPU + 0xD000:
|
||||||
|
case VADDR_GPU + 0xE000:
|
||||||
|
case VADDR_GPU + 0xF000:
|
||||||
GPU::Read(var, addr);
|
GPU::Read(var, addr);
|
||||||
break;
|
break;
|
||||||
case VADDR_LCD:
|
case VADDR_LCD:
|
||||||
@ -29,6 +44,21 @@ template <typename T>
|
|||||||
inline void Write(u32 addr, const T data) {
|
inline void Write(u32 addr, const T data) {
|
||||||
switch (addr & 0xFFFFF000) {
|
switch (addr & 0xFFFFF000) {
|
||||||
case VADDR_GPU:
|
case VADDR_GPU:
|
||||||
|
case VADDR_GPU + 0x1000:
|
||||||
|
case VADDR_GPU + 0x2000:
|
||||||
|
case VADDR_GPU + 0x3000:
|
||||||
|
case VADDR_GPU + 0x4000:
|
||||||
|
case VADDR_GPU + 0x5000:
|
||||||
|
case VADDR_GPU + 0x6000:
|
||||||
|
case VADDR_GPU + 0x7000:
|
||||||
|
case VADDR_GPU + 0x8000:
|
||||||
|
case VADDR_GPU + 0x9000:
|
||||||
|
case VADDR_GPU + 0xA000:
|
||||||
|
case VADDR_GPU + 0xB000:
|
||||||
|
case VADDR_GPU + 0xC000:
|
||||||
|
case VADDR_GPU + 0xD000:
|
||||||
|
case VADDR_GPU + 0xE000:
|
||||||
|
case VADDR_GPU + 0xF000:
|
||||||
GPU::Write(addr, data);
|
GPU::Write(addr, data);
|
||||||
break;
|
break;
|
||||||
case VADDR_LCD:
|
case VADDR_LCD:
|
||||||
|
Loading…
Reference in New Issue
Block a user