diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-08-17 00:20:04 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-08-17 00:20:04 +0000 |
| commit | 45feea42c2fa1b95f2b40ddc6c3314c0fe8318f9 (patch) | |
| tree | a990111e78dfa5c3acc61d4e442a3bb6e6bedbb7 /Source/Core/DSPCore | |
| parent | 81ee1d1b101fe803458b442e10360a3e93cda805 (diff) | |
dsp lle: coef is really 0x800 words
dspspy: fill the whole iram! crazy thing, normally likes len%4=0, however to fill the whole iram you use 8191 instead of 8192... :s
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4011 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPCore.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPCore.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DSPCore/Src/DSPCore.cpp b/Source/Core/DSPCore/Src/DSPCore.cpp index b42e17cac5..aff0a26721 100644 --- a/Source/Core/DSPCore/Src/DSPCore.cpp +++ b/Source/Core/DSPCore/Src/DSPCore.cpp @@ -54,7 +54,7 @@ static bool LoadRom(const char *fname, int size_in_words, u16 *rom) fclose(pFile); // Byteswap the rom. - for (int i = 0; i < DSP_IROM_SIZE; i++) + for (int i = 0; i < size_in_words; i++) rom[i] = Common::swap16(rom[i]); return true; diff --git a/Source/Core/DSPCore/Src/DSPCore.h b/Source/Core/DSPCore/Src/DSPCore.h index c88b5ebce7..6b7cdf3bc6 100644 --- a/Source/Core/DSPCore/Src/DSPCore.h +++ b/Source/Core/DSPCore/Src/DSPCore.h @@ -40,9 +40,9 @@ #define DSP_DRAM_SIZE 0x1000 #define DSP_DRAM_MASK 0x0fff -#define DSP_COEF_BYTE_SIZE 0x2000 -#define DSP_COEF_SIZE 0x1000 -#define DSP_COEF_MASK 0x0fff +#define DSP_COEF_BYTE_SIZE 0x1000 +#define DSP_COEF_SIZE 0x800 +#define DSP_COEF_MASK 0x7ff #define DSP_RESET_VECTOR 0x8000 |
