mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 14:35:46 +00:00
video_core: Assert on invalid GPU to CPU address queries
This commit is contained in:
parent
c73b44fc35
commit
af1543712d
8 changed files with 67 additions and 47 deletions
|
@ -35,8 +35,10 @@ void DmaPusher::DispatchCalls() {
|
|||
bool DmaPusher::Step() {
|
||||
if (dma_get != dma_put) {
|
||||
// Push buffer non-empty, read a word
|
||||
const CommandHeader command_header{
|
||||
Memory::Read32(*gpu.MemoryManager().GpuToCpuAddress(dma_get))};
|
||||
const auto address = gpu.MemoryManager().GpuToCpuAddress(dma_get);
|
||||
ASSERT_MSG(address, "Invalid GPU address");
|
||||
|
||||
const CommandHeader command_header{Memory::Read32(*address)};
|
||||
|
||||
dma_get += sizeof(u32);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue