From 8b915259e86f907f9feea299776f3009f33608a7 Mon Sep 17 00:00:00 2001 From: bgk Date: Fri, 31 Oct 2008 09:03:14 +0000 Subject: [PATCH] PPC core fix by Tantric git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@795 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/agb/GBA-thumb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agb/GBA-thumb.cpp b/src/agb/GBA-thumb.cpp index 104c0fa4..ebdba4e1 100644 --- a/src/agb/GBA-thumb.cpp +++ b/src/agb/GBA-thumb.cpp @@ -156,7 +156,7 @@ static INSN_REGPARM void thumbBreakpoint(u32 opcode) {\ register int Flags; \ register int Result; \ - asm volatile("mtspr xer, %4\n" \ + asm volatile("mtspr 1, %4\n" \ /* reg 1 is xer */ "addeo. %0, %2, %3\n" \ "mcrxr cr1\n" \ "mfcr %1\n" \ @@ -248,7 +248,7 @@ static INSN_REGPARM void thumbBreakpoint(u32 opcode) {\ register int Flags; \ register int Result; \ - asm volatile("mtspr xer, %4\n" \ + asm volatile("mtspr 1, %4\n" \ /* reg 1 is xer */ "subfeo. %0, %3, %2\n" \ "mcrxr cr1\n" \ "mfcr %1\n" \