mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X: Removed the temporary "TDA" variable from the core structure. Breaks state compatibility.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5416 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
7dc3b25ddf
commit
4d9e07b311
|
@ -244,6 +244,8 @@ void V_Core::PlainDMAWrite(u16 *pMem, u32 size)
|
||||||
const u32 buff1size = (buff1end-TSA);
|
const u32 buff1size = (buff1end-TSA);
|
||||||
memcpy( GetMemPtr( TSA ), pMem, buff1size*2 );
|
memcpy( GetMemPtr( TSA ), pMem, buff1size*2 );
|
||||||
|
|
||||||
|
u32 TDA;
|
||||||
|
|
||||||
if( buff2end > 0 )
|
if( buff2end > 0 )
|
||||||
{
|
{
|
||||||
// second branch needs copied:
|
// second branch needs copied:
|
||||||
|
@ -341,6 +343,8 @@ void V_Core::DoDMAread(u16* pMem, u32 size)
|
||||||
// IRQA should be measured by the end of the writepos+0x20. But the TDA
|
// IRQA should be measured by the end of the writepos+0x20. But the TDA
|
||||||
// should be written back at the precise endpoint of the xfer.
|
// should be written back at the precise endpoint of the xfer.
|
||||||
|
|
||||||
|
u32 TDA;
|
||||||
|
|
||||||
if( buff2end > 0 )
|
if( buff2end > 0 )
|
||||||
{
|
{
|
||||||
// second branch needs cleared:
|
// second branch needs cleared:
|
||||||
|
@ -457,6 +461,8 @@ s32 V_Core::NewDmaRead(u32* data, u32 bytesLeft, u32* bytesProcessed)
|
||||||
// IRQA should be measured by the end of the writepos+0x20. But the TDA
|
// IRQA should be measured by the end of the writepos+0x20. But the TDA
|
||||||
// should be written back at the precise endpoint of the xfer.
|
// should be written back at the precise endpoint of the xfer.
|
||||||
|
|
||||||
|
u32 TDA;
|
||||||
|
|
||||||
if( buff2end > 0 )
|
if( buff2end > 0 )
|
||||||
{
|
{
|
||||||
// second branch needs cleared:
|
// second branch needs cleared:
|
||||||
|
|
|
@ -387,7 +387,6 @@ struct V_Core
|
||||||
|
|
||||||
u32 IRQA; // Interrupt Address
|
u32 IRQA; // Interrupt Address
|
||||||
u32 TSA; // DMA Transfer Start Address
|
u32 TSA; // DMA Transfer Start Address
|
||||||
u32 TDA; // DMA Transfer Data Address (Internal...)
|
|
||||||
|
|
||||||
bool IRQEnable; // Interrupt Enable
|
bool IRQEnable; // Interrupt Enable
|
||||||
bool FxEnable; // Effect Enable
|
bool FxEnable; // Effect Enable
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace Savestate
|
||||||
|
|
||||||
// versioning for saves.
|
// versioning for saves.
|
||||||
// Increment this when changes to the savestate system are made.
|
// Increment this when changes to the savestate system are made.
|
||||||
static const u32 SAVE_VERSION = 0x000a;
|
static const u32 SAVE_VERSION = 0x000b;
|
||||||
|
|
||||||
static void wipe_the_cache()
|
static void wipe_the_cache()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue