[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen master] target-i386: document how x86 gdb_num_core_regs is computed.
commit 175cad36a599bb24ab2a5cd195c96b1f123e25a9 Author: Doug Evans <dje@xxxxxxxxxx> AuthorDate: Thu Nov 3 21:48:56 2016 +0000 Commit: Paolo Bonzini <pbonzini@xxxxxxxxxx> CommitDate: Thu Nov 10 16:01:09 2016 +0100 target-i386: document how x86 gdb_num_core_regs is computed. It helps when reading the code to see how the number is arrived at. Signed-off-by: Doug Evans <dje@xxxxxxxxxx> Message-Id: <94eb2c187eda43dba005406c86f7@xxxxxxxxxx> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- target-i386/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 14c5186..6eec5dc 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -3721,6 +3721,9 @@ static void x86_cpu_common_class_init(ObjectClass *oc, void *data) cc->write_elf32_qemunote = x86_cpu_write_elf32_qemunote; cc->vmsd = &vmstate_x86_cpu; #endif + /* CPU_NB_REGS * 2 = general regs + xmm regs + * 25 = eip, eflags, 6 seg regs, st[0-7], fctrl,...,fop, mxcsr. + */ cc->gdb_num_core_regs = CPU_NB_REGS * 2 + 25; #ifndef CONFIG_USER_ONLY cc->debug_excp_handler = breakpoint_handler; -- generated by git-patchbot for /home/xen/git/qemu-xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |