diff options
| author | nakeee <nakeee@gmail.com> | 2009-07-14 08:30:23 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-07-14 08:30:23 +0000 |
| commit | c6b3c6a69b69e1c7f0b923dc703901a573fe7801 (patch) | |
| tree | abf9f176c02f086aa737bf3fa29e9485f101c57f /Source/Core/DSPCore/Src/DSPHWInterface.cpp | |
| parent | fda61d91d5398a7613e6ef6bb5f883cffe79f135 (diff) | |
DSPLLE minor cleanup nothing important
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3789 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPHWInterface.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPHWInterface.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/Core/DSPCore/Src/DSPHWInterface.cpp b/Source/Core/DSPCore/Src/DSPHWInterface.cpp index 3f0e702308..a4da019c24 100644 --- a/Source/Core/DSPCore/Src/DSPHWInterface.cpp +++ b/Source/Core/DSPCore/Src/DSPHWInterface.cpp @@ -236,7 +236,6 @@ u16 gdsp_ifx_read(u16 addr) void gdsp_idma_in(u16 dsp_addr, u32 addr, u32 size) { - static bool reset = true; UnWriteProtectMemory(g_dsp.iram, DSP_IRAM_BYTE_SIZE, false); u8* dst = ((u8*)g_dsp.iram); @@ -246,17 +245,12 @@ void gdsp_idma_in(u16 dsp_addr, u32 addr, u32 size) *(u16*)&dst[dsp_addr + i] = Common::swap16(*(const u16*)&g_dsp.cpu_ram[(addr + i) & 0x0fffffff]); } WriteProtectMemory(g_dsp.iram, DSP_IRAM_BYTE_SIZE, false); + + g_dsp.iram_crc = DSPHost_CodeLoaded(g_dsp.cpu_ram + (addr & 0x0fffffff), size); NOTICE_LOG(DSPLLE, "*** Copy new UCode from 0x%08x to 0x%04x (crc: %8x)", addr, dsp_addr, g_dsp.iram_crc); - g_dsp.iram_crc = DSPHost_CodeLoaded(g_dsp.cpu_ram + (addr & 0x0fffffff), size); - DSPAnalyzer::Analyze(); - if (reset) { - // This calls the reset functions, but it get some games stuck - // uncomment it to help with debugging - // DSPCore_SetException(EXP_RESET); - reset = false; - } + DSPAnalyzer::Analyze(); } @@ -321,7 +315,9 @@ void gdsp_do_dma() ERROR_LOG(DSPLLE, "DMA ERROR pc: %04x ctl: %04x addr: %08x da: %04x size: %04x", g_dsp.pc, ctl, addr, dsp_addr, len); exit(0); } - +#ifdef DEBUG_EXP + NOTICE_LOG(DSPLLE, "DMA pc: %04x ctl: %04x addr: %08x da: %04x size: %04x", g_dsp.pc, ctl, addr, dsp_addr, len); +#endif switch (ctl & 0x3) { case (DSP_CR_DMEM | DSP_CR_TO_CPU): |
