Skip to contentSkip to conversation

Gdbstub: handle read of fpscr

PATCH In review Fabien Chouteau 2 participants 2 messages Sep 1, 2011 – Sep 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Gdbstub: handle read of fpscr

---
 gdbstub.c                   |    2 +-
 target-ppc/translate_init.c |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
gdbstub.c +1 -1
index 3b87c27..4125daf 100644
@@ -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);
             }
         }
     }
target-ppc/translate_init.c +1 -2
index 9ea193d..91006c6 100644
@@ -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;
Signature · 1 line
1.7.4.1