From f235bc83a89857553cc322baa72feb682f8cc5a7 Mon Sep 17 00:00:00 2001 From: Nanquitas Date: Mon, 14 Aug 2017 16:10:50 +0200 Subject: [PATCH] Watchpoints: fix read DSCR to enable MonitorMode --- sysmodules/rosalina/source/gdb/watchpoints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmodules/rosalina/source/gdb/watchpoints.c b/sysmodules/rosalina/source/gdb/watchpoints.c index 3b21a42..e52a492 100644 --- a/sysmodules/rosalina/source/gdb/watchpoints.c +++ b/sysmodules/rosalina/source/gdb/watchpoints.c @@ -60,7 +60,7 @@ static void K_EnableMonitorModeDebugging(void) __asm__ __volatile__("cpsid aif"); u32 DSCR; - __asm__ __volatile__("mrc p15, 0, %[val], c0, c1, 0" : [val] "=r" (DSCR)); + __asm__ __volatile__("mrc p14, 0, %[val], c0, c1, 0" : [val] "=r" (DSCR)); DSCR |= 0x8000; __asm__ __volatile__("mcr p14, 0, %[val], c0, c1, 0" :: [val] "r" (DSCR)); }