]> git.proxmox.com Git - qemu.git/commitdiff
Gdbstub: handle read of fpscr
authorFabien Chouteau <chouteau@adacore.com>
Thu, 1 Sep 2011 04:56:00 +0000 (04:56 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 6 Oct 2011 07:48:05 +0000 (09:48 +0200)
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
gdbstub.c
target-ppc/translate_init.c

index 12dd100af47291915efe7894cb958dcb052f9de1..1d99e19258ba84f3cd1a8ca748c9f9bcf2078420 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -733,7 +733,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);
             }
         }
     }
index 211f3bd0c14f9c322803bebb42dd03c4c5ba22bf..d09c7ca98b3b9bc0c3a0fb7582185beca9a65f9a 100644 (file)
@@ -9700,8 +9700,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;