aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-28 21:27:39 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-23 02:41:33 +0200
commit22169d415a1d1706f66a4fd50a3573d3f296b24f (patch)
treee3798f65b2fbd699252b00a8e5140dd68a367712 /gdbstub.c
parenteac8b355f0015e44addce3e92030365b16d9da61 (diff)
downloadqemu-arm-22169d415a1d1706f66a4fd50a3573d3f296b24f.tar.gz
gdbstub: Change gdb_register_coprocessor() argument to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdbstub.c b/gdbstub.c
index e58d06ead9..35ca7c2c1e 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1906,11 +1906,10 @@ static int gdb_write_register(CPUState *cpu, uint8_t *mem_buf, int reg)
gdb reading a CPU register, and set_reg is gdb modifying a CPU register.
*/
-void gdb_register_coprocessor(CPUArchState * env,
- gdb_reg_cb get_reg, gdb_reg_cb set_reg,
- int num_regs, const char *xml, int g_pos)
+void gdb_register_coprocessor(CPUState *cpu,
+ gdb_reg_cb get_reg, gdb_reg_cb set_reg,
+ int num_regs, const char *xml, int g_pos)
{
- CPUState *cpu = ENV_GET_CPU(env);
GDBRegisterState *s;
GDBRegisterState **p;
static int last_reg = NUM_CORE_REGS;