summaryrefslogtreecommitdiffstats
path: root/target-alpha/cpu.c
diff options
context:
space:
mode:
authorAndreas Färber2013-06-28 23:18:47 +0200
committerAndreas Färber2013-07-26 23:23:54 +0200
commita0e372f0c49ac01faeaeb73a6e8f50e8ac615f34 (patch)
tree0a87f5f9ab3ff51ef996c69ded7cfa8f97768e92 /target-alpha/cpu.c
parentgdbstub: Drop dead code in cpu_gdb_{read,write}_register() (diff)
downloadqemu-a0e372f0c49ac01faeaeb73a6e8f50e8ac615f34.tar.gz
qemu-a0e372f0c49ac01faeaeb73a6e8f50e8ac615f34.tar.xz
qemu-a0e372f0c49ac01faeaeb73a6e8f50e8ac615f34.zip
cpu: Introduce CPUState::gdb_num_regs and CPUClass::gdb_num_core_regs
CPUState::gdb_num_regs replaces num_g_regs. CPUClass::gdb_num_core_regs replaces NUM_CORE_REGS. Allows building gdb_register_coprocessor() for xtensa, too. As a side effect this should fix coprocessor register numbering for SMP. Acked-by: Michael Walle <michael@walle.cc> (for lm32) Acked-by: Max Filippov <jcmvbkbc@gmail.com> (for xtensa) Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-alpha/cpu.c')
-rw-r--r--target-alpha/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-alpha/cpu.c b/target-alpha/cpu.c
index c8c8c2c861..cc0f69a84a 100644
--- a/target-alpha/cpu.c
+++ b/target-alpha/cpu.c
@@ -276,6 +276,7 @@ static void alpha_cpu_class_init(ObjectClass *oc, void *data)
cc->get_phys_page_debug = alpha_cpu_get_phys_page_debug;
dc->vmsd = &vmstate_alpha_cpu;
#endif
+ cc->gdb_num_core_regs = 67;
}
static const TypeInfo alpha_cpu_type_info = {