mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
Fix gdbserver number of registers (Tristan Gingold)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6280 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
2c3891ab7f
commit
5a37791249
1 changed files with 2 additions and 2 deletions
|
@ -694,7 +694,7 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t *mem_buf, int n)
|
||||||
#if defined(TARGET_SPARC64) && !defined(TARGET_ABI32)
|
#if defined(TARGET_SPARC64) && !defined(TARGET_ABI32)
|
||||||
#define NUM_CORE_REGS 86
|
#define NUM_CORE_REGS 86
|
||||||
#else
|
#else
|
||||||
#define NUM_CORE_REGS 73
|
#define NUM_CORE_REGS 72
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TARGET_ABI32
|
#ifdef TARGET_ABI32
|
||||||
|
@ -728,7 +728,7 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n)
|
||||||
case 69: GET_REGA(env->npc);
|
case 69: GET_REGA(env->npc);
|
||||||
case 70: GET_REGA(env->fsr);
|
case 70: GET_REGA(env->fsr);
|
||||||
case 71: GET_REGA(0); /* csr */
|
case 71: GET_REGA(0); /* csr */
|
||||||
case 72: GET_REGA(0);
|
default: GET_REGA(0);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (n < 64) {
|
if (n < 64) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue