[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 51/58] Gdbstub: handle read of fpscr
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 51/58] Gdbstub: handle read of fpscr |
Date: |
Wed, 14 Sep 2011 10:43:15 +0200 |
From: Fabien Chouteau <address@hidden>
Signed-off-by: Fabien Chouteau <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
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 90683a4..efe7b5f 100644
--- 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);
}
}
}
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 211f3bd..d09c7ca 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -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;
--
1.6.0.2
- Re: [Qemu-ppc] [PATCH 05/58] PPC: Add CPU local MMIO regions to MPIC, (continued)
- [Qemu-ppc] [PATCH 37/58] pseries: Add a phandle to the xicp interrupt controller device tree node, Alexander Graf, 2011/09/14
- [Qemu-ppc] [PATCH 13/58] PPC: E500: Generate IRQ lines for many CPUs, Alexander Graf, 2011/09/14
- [Qemu-ppc] [PATCH 43/58] KVM: Update kernel headers, Alexander Graf, 2011/09/14
- [Qemu-ppc] [PATCH 52/58] ppc405: use RAM_ADDR_FMT instead of %08lx, Alexander Graf, 2011/09/14
- [Qemu-ppc] [PATCH 11/58] PPC: Bump MPIC up to 32 supported CPUs, Alexander Graf, 2011/09/14
- [Qemu-ppc] [PATCH 51/58] Gdbstub: handle read of fpscr,
Alexander Graf <=