gdbstub: Simplify gdb_get_cpu_pid() to use cpu->cluster_index
commit46f5abc0a2566ac3dc954eeb62fd625f0eaca120
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 29 Jan 2019 11:46:06 +0000 (29 11:46 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 29 Jan 2019 11:46:06 +0000 (29 11:46 +0000)
tree2565dfb0a8d719063e9682b7887747748eba230a
parentf7b78602fdc6c6e4befc90159da8e93900b4bcb1
gdbstub: Simplify gdb_get_cpu_pid() to use cpu->cluster_index

Now we're keeping the cluster index in the CPUState, we don't
need to jump through hoops in gdb_get_cpu_pid() to find the
associated cluster object.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Luc Michel <luc.michel@greensocs.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 20190121152218.9592-5-peter.maydell@linaro.org
gdbstub.c