target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32() again
PATCH 1/1 target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32() again
Commit 780fbbef2a2 ("target/hexagon: gdbstub - Add sys reg support") re-introduced calls to gdb_get_regl(). Since Hexagon target is only built as 32-bit, replace them again by gdb_get_reg32(), similarly to commit previous 7831e5f48d2 ("target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32()").
--- target/hexagon/gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/hexagon/gdbstub.c +2 -2
@@ -96,12 +96,12 @@ int hexagon_sys_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) val = cpu->globalregs ?hexagon_globalreg_read (cpu->globalregs, n, env->threadId) :0 ; } -return gdb_get_regl (mem_buf, val); +return gdb_get_reg32 (mem_buf, val); } n -=NUM_SREGS ;if (n <NUM_GREGS ) { -return gdb_get_regl (mem_buf,hexagon_greg_read (env, n)); +return gdb_get_reg32 (mem_buf,hexagon_greg_read (env, n)); } n -=NUM_GREGS ;
Signature · 1 line
2.55.0
Quoted 33 lines · Philippe Mathieu-Daudé
Commit
780fbbef2a2("target/hexagon: gdbstub - Add sys reg support") re-introduced calls togdb_get_regl(). Since Hexagon target is only built as 32-bit, replace them again bygdb_get_reg32(), similarly to commit previous7831e5f48d2("target/hexagon: Expandgdb_get_regl()->gdb_get_reg32()").Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/hexagon/gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)target/hexagon/gdbstub.c +2
-2@@ -96,12 +96,12 @@ int hexagon_sys_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) val = cpu->globalregs ?hexagon_globalreg_read (cpu->globalregs, n, env->threadId) :0 ; } -return gdb_get_regl (mem_buf, val); +return gdb_get_reg32 (mem_buf, val); } n -=NUM_SREGS ;if (n <NUM_GREGS ) { -return gdb_get_regl (mem_buf,hexagon_greg_read (env, n)); +return gdb_get_reg32 (mem_buf,hexagon_greg_read (env, n)); } n -=NUM_GREGS ;Signature · 1 line
2.55.0
Quoted 8 lines · Philippe Mathieu-Daudé
Commit
780fbbef2a2("target/hexagon: gdbstub - Add sys reg support") re-introduced calls togdb_get_regl(). Since Hexagon target is only built as 32-bit, replace them again bygdb_get_reg32(), similarly to commit previous7831e5f48d2("target/hexagon: Expandgdb_get_regl()->gdb_get_reg32()").Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Quoted 22 lines
target/hexagon/gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)target/hexagon/gdbstub.c +2
-2@@ -96,12 +96,12 @@ int hexagon_sys_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) val = cpu->globalregs ?hexagon_globalreg_read (cpu->globalregs, n, env->threadId) :0 ; } -return gdb_get_regl (mem_buf, val); +return gdb_get_reg32 (mem_buf, val); } n -=NUM_SREGS ;if (n <NUM_GREGS ) { -return gdb_get_regl (mem_buf,hexagon_greg_read (env, n)); +return gdb_get_reg32 (mem_buf,hexagon_greg_read (env, n)); } n -=NUM_GREGS ;
Quoted 11 lines · Philippe Mathieu-Daudé
Commit
780fbbef2a2("target/hexagon: gdbstub - Add sys reg support") re-introduced calls togdb_get_regl(). Since Hexagon target is only built as 32-bit, replace them again bygdb_get_reg32(), similarly to commit previous7831e5f48d2("target/hexagon: Expandgdb_get_regl()->gdb_get_reg32()").Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/hexagon/gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)