qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] [POWERPC] Gdbstub: handle read of fpscr
@ 2011-09-01 14:56 Fabien Chouteau
  2011-09-06 19:37 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Fabien Chouteau @ 2011-09-01 14:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-ppc


Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
---
 gdbstub.c                   |    2 +-
 target-ppc/translate_init.c |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/gdbstub.c b/gdbstub.c
index 3b87c27..4125daf 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -724,7 +724,7 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n)
             {
                 if (gdb_has_xml)
                     return 0;
-                GET_REG32(0); /* fpscr */
+                GET_REG32(env->fpscr);
             }
         }
     }
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 9ea193d..91006c6 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -9679,8 +9679,7 @@ static int gdb_get_float_reg(CPUState *env, uint8_t *mem_buf, int n)
         return 8;
     }
     if (n == 32) {
-        /* FPSCR not implemented  */
-        memset(mem_buf, 0, 4);
+        stl_p(mem_buf, env->fpscr);
         return 4;
     }
     return 0;
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] [POWERPC] Gdbstub: handle read of fpscr
  2011-09-01 14:56 [Qemu-devel] [PATCH] [POWERPC] Gdbstub: handle read of fpscr Fabien Chouteau
@ 2011-09-06 19:37 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2011-09-06 19:37 UTC (permalink / raw)
  To: Fabien Chouteau; +Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org



Am 01.09.2011 um 16:56 schrieb Fabien Chouteau <chouteau@adacore.com>:

> 
> Signed-off-by: Fabien Chouteau <chouteau@adacore.com>

Tanks, applied. But please add a patch description next time :)

Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-06 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-01 14:56 [Qemu-devel] [PATCH] [POWERPC] Gdbstub: handle read of fpscr Fabien Chouteau
2011-09-06 19:37 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf

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).