qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5461] CRIS: Handle GDB writes to pregs.


From: Edgar E. Iglesias
Subject: [Qemu-devel] [5461] CRIS: Handle GDB writes to pregs.
Date: Sat, 11 Oct 2008 19:32:21 +0000

Revision: 5461
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5461
Author:   edgar_igl
Date:     2008-10-11 19:32:21 +0000 (Sat, 11 Oct 2008)

Log Message:
-----------
CRIS: Handle GDB writes to pregs.

Modified Paths:
--------------
    trunk/gdbstub.c

Modified: trunk/gdbstub.c
===================================================================
--- trunk/gdbstub.c     2008-10-11 18:23:22 UTC (rev 5460)
+++ trunk/gdbstub.c     2008-10-11 19:32:21 UTC (rev 5461)
@@ -977,11 +977,15 @@
        env->regs[n] = tmp;
     }
 
-    /* FIXME: Should other regs be writable?  */
+    if (n >= 21 && n < 32) {
+       env->pregs[n - 16] = tmp;
+    }
+
+    /* FIXME: Should support function regs be writable?  */
     switch (n) {
     case 16: return 1;
     case 17: return 1;
-    case 18: return 4;
+    case 18: env->pregs[PR_PID] = tmp; break;
     case 19: return 1;
     case 20: return 2;
     case 32: env->pc = tmp; break;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]