gdbstub: Change GDBState::query_cpu to CPUState

Since first_cpu/next_cpu are CPUState, CPUArchState is no longer needed.

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpu: Introduce CPUClass::set_pc() [WIP]

This moves setting the Program Counter from gdbstub into target code.

Signed-off-by: Andreas Färber <afaerber@suse.de>
gdbstub: Replace two find_cpu() with qemu_get_cpu()

Since changing cpu_synchronize_state() to CPUState one was no longer
accessing CPUArchState, the other was just checking existence.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-alpha: Change gen_intermediate_code_internal() args to AlphaCPU/bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-arm: Change gen_intermediate_code_internal() args to ARMCPU and bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-cris: Change gen_intermediate_code_internal() args to CRISCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386: Change gen_intermediate_code_internal() to X86CPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-lm32: Change gen_intermediate_code_internal() to LM32CPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-m68k: Change gen_intermediate_code_internal() to M68kCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-microblaze: Change gen_intermediate_code_internal() signature

MicroBlazeCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-mips: Change gen_intermediate_code_internal() to MIPSCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-ppc: Change gen_intermediate_code_internal() to PowerPCCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-s390x: Change gen_intermediate_code_internal() to S390CPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-sh4: Change gen_intermediate_code_internal() to SuperHCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-sparc: Change gen_intermediate_code_internal() to SPARCCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-unicore32: Change gen_intermediate_code_internal() signature

UniCore32CPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-xtensa: Change gen_intermediate_code_internal() to XtensaCPU+bool

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-alpha: Change DisasContext::env to CPUState

Needed for moving singlestep_enabled to CPUState.

Signed-off-by: Andreas Färber <afaerber@suse.de>
cpu: Move singlestep_enabled from CPU_COMMON to CPUState

Signed-off-by: Andreas Färber <afaerber@suse.de>
gdbstub: Update gdb_handlesig() and gdb_signalled() to Coding Style

In particular reindent to 4 instead of 2 spaces.

Signed-off-by: Andreas Färber <afaerber@suse.de>