Skip to content

Commit 4b27f9b

Browse files
philmdstsquad
authored andcommitted
target/m68k/helper: Fix m68k_fpu_gdb_get_reg() use of GByteArray
Since a010bdb the gdbstub API takes a GByteArray*. Unfortunately we forgot to update the gdb_get_reg*() calls. Do it now. Fixes: a010bdb ("extend GByteArray to read register helpers") Reported-by: Peter Xu <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Reviewed-by: Peter Xu <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]> Message-Id: <[email protected]>
1 parent 7ad4d5a commit 4b27f9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

target/m68k/helper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ static int m68k_fpu_gdb_get_reg(CPUM68KState *env, GByteArray *mem_buf, int n)
109109
{
110110
if (n < 8) {
111111
int len = gdb_get_reg16(mem_buf, env->fregs[n].l.upper);
112-
len += gdb_get_reg16(mem_buf + len, 0);
113-
len += gdb_get_reg64(mem_buf + len, env->fregs[n].l.lower);
112+
len += gdb_get_reg16(mem_buf, 0);
113+
len += gdb_get_reg64(mem_buf, env->fregs[n].l.lower);
114114
return len;
115115
}
116116
switch (n) {

0 commit comments

Comments
 (0)