[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 3/3] target/ppc: Enable reporting of SPRs to GDB
From: |
Fabiano Rosas |
Subject: |
[Qemu-devel] [PATCH v4 3/3] target/ppc: Enable reporting of SPRs to GDB |
Date: |
Tue, 22 Jan 2019 15:01:12 -0200 |
This allows reading and writing of SPRs via GDB:
(gdb) p/x $srr1
$1 = 0x8000000002803033
(gdb) p/x $pvr
$2 = 0x4b0201
(gdb) set $pvr=0x4b0000
(gdb) p/x $pvr
$3 = 0x4b0000
They can also be shown as a group:
(gdb) info reg spr
Signed-off-by: Fabiano Rosas <address@hidden>
---
target/ppc/translate_init.inc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c
index f29ac3558a..cba0303be2 100644
--- a/target/ppc/translate_init.inc.c
+++ b/target/ppc/translate_init.inc.c
@@ -10531,7 +10531,9 @@ static void ppc_cpu_class_init(ObjectClass *oc, void
*data)
#endif
cc->gdb_num_core_regs = 71;
-
+#ifndef CONFIG_USER_ONLY
+ cc->gdb_get_dynamic_xml = ppc_gdb_get_dynamic_xml;
+#endif
#ifdef USE_APPLE_GDB
cc->gdb_read_register = ppc_cpu_gdb_read_register_apple;
cc->gdb_write_register = ppc_cpu_gdb_write_register_apple;
--
2.17.1
- Re: [Qemu-devel] [PATCH v4 1/3] target/ppc: Add SPRs XML generation code for gdbstub, (continued)
- [Qemu-devel] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Fabiano Rosas, 2019/01/22
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Alexey Kardashevskiy, 2019/01/24
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, David Gibson, 2019/01/26
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Fabiano Rosas, 2019/01/28
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Alexey Kardashevskiy, 2019/01/28
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Fabiano Rosas, 2019/01/30
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Alexey Kardashevskiy, 2019/01/31
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Fabiano Rosas, 2019/01/31
- Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs, Alexey Kardashevskiy, 2019/01/31
[Qemu-devel] [PATCH v4 3/3] target/ppc: Enable reporting of SPRs to GDB,
Fabiano Rosas <=