linux-mips
[Top] [All Lists]

small fix for gdb

To: linux-mips@oss.sgi.com
Subject: small fix for gdb
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Wed, 31 Oct 2001 13:54:49 +0900 (JST)
Cc: ralf@oss.sgi.com
Organization: TOSHIBA Personal Computer System Corporation
Sender: owner-linux-mips@oss.sgi.com
in gdb-low.S, "mfc1" (not "cfc1") is used to get CP1 status/revision.
Here is a patch.

--- linux-sgi-cvs/arch/mips/kernel/gdb-low.S    Fri Oct 26 10:39:13 2001
+++ linux.new/arch/mips/kernel/gdb-low.S        Wed Oct 31 13:44:52 2001
@@ -145,9 +145,9 @@
  * FPU control registers
  */
 
-               mfc1    v0,CP1_STATUS
+               cfc1    v0,CP1_STATUS
                sw      v0,GDB_FR_FSR(sp)
-               mfc1    v0,CP1_REVISION
+               cfc1    v0,CP1_REVISION
                sw      v0,GDB_FR_FIR(sp)
 
 /*
---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>
  • small fix for gdb, Atsushi Nemoto <=