qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5461] CRIS: Handle GDB writes to pregs.
@ 2008-10-11 19:32 Edgar E. Iglesias
  0 siblings, 0 replies; only message in thread
From: Edgar E. Iglesias @ 2008-10-11 19:32 UTC (permalink / raw)
  To: qemu-devel

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-11 19:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11 19:32 [Qemu-devel] [5461] CRIS: Handle GDB writes to pregs Edgar E. Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).