mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-23 06:40:49 +00:00
Disable DMA writes and add copyright notices
This commit is contained in:
parent
e12cfc89de
commit
084106ced6
@ -1,3 +1,4 @@
|
||||
// Copyright (C) 2015 AlexAltea (https://github.com/AlexAltea/nucleus)
|
||||
#include "stdafx.h"
|
||||
#include "RSXDMA.h"
|
||||
#include "Emu/Memory/Memory.h"
|
||||
@ -18,7 +19,7 @@ DMAObject dma_address(u32 dma_object)
|
||||
case RSX_CONTEXT_DMA_SEMAPHORE_R:
|
||||
return DMAObject{ 0x40100000, 0x1000, DMAObject::READWRITE }; // TODO: Inconsistency: Gitbrew says R, test says RW
|
||||
default:
|
||||
LOG_WARNING(RSX, "Unknown DMA object (0x%08X)", dma_object);
|
||||
LOG_WARNING(RSX, "Unknown DMA object (0x%08x)", dma_object);
|
||||
return DMAObject{};
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
// Copyright (C) 2015 AlexAltea (https://github.com/AlexAltea/nucleus)
|
||||
#pragma once
|
||||
|
||||
enum {
|
||||
|
@ -1866,15 +1866,14 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const
|
||||
// Get timestamp, and convert it from microseconds to nanoseconds
|
||||
u64 timestamp = get_system_time() * 1000;
|
||||
|
||||
// TODO: Reports can be written to the main memory or the local memory (controlled by NV4097_SET_CONTEXT_DMA_REPORT)
|
||||
// NOTE: Uncomment these, if DMA implementation is broken
|
||||
//vm::write64(m_local_mem_addr + offset + 0x0, timestamp);
|
||||
//vm::write32(m_local_mem_addr + offset + 0x8, value);
|
||||
//vm::write32(m_local_mem_addr + offset + 0xc, 0);
|
||||
// NOTE: DMA broken, implement proper lpar mapping (sys_rsx)
|
||||
//dma_write64(dma_report, offset + 0x0, timestamp);
|
||||
//dma_write32(dma_report, offset + 0x8, value);
|
||||
//dma_write32(dma_report, offset + 0xc, 0);
|
||||
|
||||
dma_write64(dma_report, offset + 0x0, timestamp);
|
||||
dma_write32(dma_report, offset + 0x8, value);
|
||||
dma_write32(dma_report, offset + 0xc, 0);
|
||||
vm::write64(m_local_mem_addr + offset + 0x0, timestamp);
|
||||
vm::write32(m_local_mem_addr + offset + 0x8, value);
|
||||
vm::write32(m_local_mem_addr + offset + 0xc, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user