diff --git a/desmume/src/GPU.h b/desmume/src/GPU.h index 67f0ffbd1..da5644d94 100644 --- a/desmume/src/GPU.h +++ b/desmume/src/GPU.h @@ -2067,13 +2067,13 @@ FORCEINLINE __m128i ConvertColor6665To5551(const __m128i &srcLo, const __m128i & #endif -template void ConvertColorBuffer555To8888Opaque(const u16 *__restrict src, u32 *__restrict dst, size_t pixCount); -template void ConvertColorBuffer555To6665Opaque(const u16 *__restrict src, u32 *__restrict dst, size_t pixCount); +template void ConvertColorBuffer555To8888Opaque(const u16 *__restrict src, u32 *__restrict dst, size_t pixCount); +template void ConvertColorBuffer555To6665Opaque(const u16 *__restrict src, u32 *__restrict dst, size_t pixCount); template void ConvertColorBuffer8888To6665(const u32 *src, u32 *dst, size_t pixCount); template void ConvertColorBuffer6665To8888(const u32 *src, u32 *dst, size_t pixCount); -template void ConvertColorBuffer8888To5551(const u32 *__restrict src, u16 *__restrict dst, size_t pixCount); -template void ConvertColorBuffer6665To5551(const u32 *__restrict src, u16 *__restrict dst, size_t pixCount); +template void ConvertColorBuffer8888To5551(const u32 *__restrict src, u16 *__restrict dst, size_t pixCount); +template void ConvertColorBuffer6665To5551(const u32 *__restrict src, u16 *__restrict dst, size_t pixCount); #endif diff --git a/desmume/src/armcpu.cpp b/desmume/src/armcpu.cpp index 081902852..8bad58e8b 100644 --- a/desmume/src/armcpu.cpp +++ b/desmume/src/armcpu.cpp @@ -570,7 +570,7 @@ BOOL armcpu_irqException(armcpu_t *armcpu) u32 TRAPUNDEF(armcpu_t* cpu) { - INFO("ARM%c: Undefined instruction: 0x%08X (%s) PC=0x%08X\n", cpu->proc_ID?'7':'9', cpu->instruction, decodeIntruction(false, cpu->instruction), cpu->instruct_adr); + INFO("ARM%c: Undefined instruction: 0x%08X PC=0x%08X\n", cpu->proc_ID?'7':'9', cpu->instruction, cpu->instruct_adr); if (((cpu->intVector != 0) ^ (cpu->proc_ID == ARMCPU_ARM9))) { @@ -757,23 +757,6 @@ void setIF(int PROCNUM, u32 flag) NDS_Reschedule(); } -char* decodeIntruction(bool thumb_mode, u32 instr) -{ - char txt[20] = {0}; - u32 tmp = 0; - if (thumb_mode == true) - { - tmp = (instr >> 6); - strcpy(txt, intToBin((u16)tmp)+6); - } - else - { - tmp = ((instr >> 16) & 0x0FF0) | ((instr >> 4) & 0x0F); - strcpy(txt, intToBin((u32)tmp)+20); - } - return strdup(txt); -} - const armcpu_ctrl_iface arm_default_ctrl_iface = { stall_cpu, unstall_cpu, diff --git a/desmume/src/armcpu.h b/desmume/src/armcpu.h index d55e1c5ef..087b240e5 100644 --- a/desmume/src/armcpu.h +++ b/desmume/src/armcpu.h @@ -335,7 +335,6 @@ template u32 armcpu_exec(); #endif void setIF(int PROCNUM, u32 flag); -char* decodeIntruction(bool thumb_mode, u32 instr); static INLINE void NDS_makeIrq(int PROCNUM, u32 num) { diff --git a/desmume/src/common.h b/desmume/src/common.h index 85e257357..4542f1e7a 100644 --- a/desmume/src/common.h +++ b/desmume/src/common.h @@ -46,17 +46,6 @@ T reverseBits(T x) return h; } -template -char *intToBin(T val) -{ - char buf[256] = {0}; - for (int i = sizeof(T)*8, t = 0; i > 0; --i, t++) - { - buf[i-1] = (val & (1<proc_ID?'7':'9', cpu->instruction, decodeIntruction(true, cpu->instruction), cpu->instruct_adr); + INFO("THUMB%c: Undefined instruction: 0x%08X PC=0x%08X\n", cpu->proc_ID?'7':'9', cpu->instruction, cpu->instruct_adr); TRAPUNDEF(cpu); return 1; }