gdbstub: Fix access to PPC FPRs
Obviously, someone forgot to rebase the index before accessing one of the 32 FPRs. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5821 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
2cbd949d7a
commit
8d4acf9b90
@ -428,7 +428,7 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n)
|
||||
GET_REGL(env->gpr[n]);
|
||||
} else if (n < 64) {
|
||||
/* fprs */
|
||||
stfq_p(mem_buf, env->fpr[n]);
|
||||
stfq_p(mem_buf, env->fpr[n-32]);
|
||||
return 8;
|
||||
} else {
|
||||
switch (n) {
|
||||
@ -459,7 +459,7 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t *mem_buf, int n)
|
||||
return sizeof(target_ulong);
|
||||
} else if (n < 64) {
|
||||
/* fprs */
|
||||
env->fpr[n] = ldfq_p(mem_buf);
|
||||
env->fpr[n-32] = ldfq_p(mem_buf);
|
||||
return 8;
|
||||
} else {
|
||||
switch (n) {
|
||||
|
Loading…
Reference in New Issue
Block a user