]> git.proxmox.com Git - qemu.git/commit - gdbstub.c
gdbstub: Synchronize CPU state unconditionally in gdb_set_cpu_pc
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 12 Mar 2012 06:24:45 +0000 (06:24 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 21 Apr 2012 13:27:34 +0000 (13:27 +0000)
commita896d03bb5f70ed76b3e9e1acba864115cfb5e01
treeb7e7afd4d007a7f2d118db67aeab9c4b5f7137e9
parent0eb4fc817fa14347a381d018eb29f1eef2fb43e4
gdbstub: Synchronize CPU state unconditionally in gdb_set_cpu_pc

Synchronize the CPU state via cpu_sychronize_state() unconditionally
in gdb_set_cpu_pc() rather than only in some of the target ifdef
ladder cases.

We can divide the CPUs into three categories:
 * non-KVM targets: no change of behaviour since we will use the
   kvm-stub.c no-op function.
 * i386 and s390: no change of behaviour since they were already
   calling this function
 * PPC (in KVM mode): this fixes an error: failing to synchronise
   was accidental and probably a bug.

This also paves the way for other targets (specifically ARM) which
can add KVM support in future without having to add another target
specific change to this bit of code.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
gdbstub.c