summaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2017-07-12 11:52:14 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-14 12:04:41 +0200
commitd2a6c8570b15413f43891fbb3c41521c68ef8297 (patch)
treedb012df273cee106b1b82ae36535688b2897c07b /include/exec
parent118e226884a762f3ef21351c05043e32be44c1f1 (diff)
downloadqemu-d2a6c8570b15413f43891fbb3c41521c68ef8297.zip
gdbstub: rename cpu_index -> cpu_gdb_index
This is to make it clear the index is purely a gdbstub function and should not be confused with the value of cpu->cpu_index. At the same time we move the function from the header to gdbstub itself which will help with later changes. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20170712105216.747-3-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/gdbstub.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/exec/gdbstub.h b/include/exec/gdbstub.h
index f9708bbcd6..9aa7756d92 100644
--- a/include/exec/gdbstub.h
+++ b/include/exec/gdbstub.h
@@ -58,15 +58,6 @@ 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);
-static inline int cpu_index(CPUState *cpu)
-{
-#if defined(CONFIG_USER_ONLY)
- return cpu->host_tid;
-#else
- return cpu->cpu_index + 1;
-#endif
-}
-
/* The GDB remote protocol transfers values in target byte order. This means
* we can use the raw memory access routines to access the value buffer.
* Conveniently, these also handle the case where the buffer is mis-aligned.