[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/8] target/m68k/helper: Fix m68k_fpu_gdb_get_reg() use of GByteAr
From: |
Alex Bennée |
Subject: |
[PULL 5/8] target/m68k/helper: Fix m68k_fpu_gdb_get_reg() use of GByteArray |
Date: |
Wed, 15 Apr 2020 11:42:08 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Since a010bdbe719 the gdbstub API takes a GByteArray*. Unfortunately
we forgot to update the gdb_get_reg*() calls. Do it now.
Fixes: a010bdbe719 ("extend GByteArray to read register helpers")
Reported-by: Peter Xu <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Peter Xu <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Message-Id: <address@hidden>
diff --git a/target/m68k/helper.c b/target/m68k/helper.c
index 014657c6372..cad40838956 100644
--- a/target/m68k/helper.c
+++ b/target/m68k/helper.c
@@ -109,8 +109,8 @@ static int m68k_fpu_gdb_get_reg(CPUM68KState *env,
GByteArray *mem_buf, int n)
{
if (n < 8) {
int len = gdb_get_reg16(mem_buf, env->fregs[n].l.upper);
- len += gdb_get_reg16(mem_buf + len, 0);
- len += gdb_get_reg64(mem_buf + len, env->fregs[n].l.lower);
+ len += gdb_get_reg16(mem_buf, 0);
+ len += gdb_get_reg64(mem_buf, env->fregs[n].l.lower);
return len;
}
switch (n) {
--
2.20.1
- [PULL for 5.0-rc3 0/8] a few small fixes (docker, user, pie and gdbstub), Alex Bennée, 2020/04/15
- [PULL 2/8] configure: redirect sphinx-build check to config.log, Alex Bennée, 2020/04/15
- [PULL 1/8] tests/docker: add docs FEATURE flag and use for test-misc, Alex Bennée, 2020/04/15
- [PULL 3/8] configure: disable PIE for Windows builds, Alex Bennée, 2020/04/15
- [PULL 4/8] linux-user: fix /proc/self/stat handling, Alex Bennée, 2020/04/15
- [PULL 7/8] gdbstub: Do not use memset() on GByteArray, Alex Bennée, 2020/04/15
- [PULL 8/8] gdbstub: Introduce gdb_get_float32() to get 32-bit float registers, Alex Bennée, 2020/04/15
- [PULL 5/8] target/m68k/helper: Fix m68k_fpu_gdb_get_reg() use of GByteArray,
Alex Bennée <=
- [PULL 6/8] gdbstub: i386: Fix gdb_get_reg16() parameter to unbreak gdb, Alex Bennée, 2020/04/15
- Re: [PULL for 5.0-rc3 0/8] a few small fixes (docker, user, pie and gdbstub), Peter Maydell, 2020/04/15