From 9fe6d69a2e6af7c5310c583c8dbfc32df71c9781 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 --- 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" \