[PATCH] target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32() again

Philippe Mathieu-Daudé posted 1 patch 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261023135336.49641-1-philmd@oss.qualcomm.com
Maintainers: Brian Cain <brian.cain@oss.qualcomm.com>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
target/hexagon/gdbstub.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32() again
Posted by Philippe Mathieu-Daudé 1 month ago
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()").

Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
---
 target/hexagon/gdbstub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/hexagon/gdbstub.c b/target/hexagon/gdbstub.c
index ca6d4a98369..85d9845cc94 100644
--- a/target/hexagon/gdbstub.c
+++ b/target/hexagon/gdbstub.c
@@ -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;
 
-- 
2.55.0


Re: [PATCH] target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32() again
Posted by Marco Liebel 1 month ago
On 10/23/2026 8:53 AM, Philippe Mathieu-Daudé wrote:
> 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()").
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
> ---
>  target/hexagon/gdbstub.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

Reviewed-by: Marco Liebel <marco.liebel@oss.qualcomm.com>

Re: [PATCH] target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32() again
Posted by Brian Cain 1 month ago
On 10/23/2026 8:53 AM, Philippe Mathieu-Daudé wrote:
> 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()").
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
> ---

Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com>


>   target/hexagon/gdbstub.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/target/hexagon/gdbstub.c b/target/hexagon/gdbstub.c
> index ca6d4a98369..85d9845cc94 100644
> --- a/target/hexagon/gdbstub.c
> +++ b/target/hexagon/gdbstub.c
> @@ -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;
>   

Re: [PATCH] target/hexagon: Expand gdb_get_regl() -> gdb_get_reg32() again
Posted by Anton Johansson via qemu development 1 month ago
On 23/10/26, Philippe Mathieu-Daudé wrote:
> 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()").
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
> ---
>  target/hexagon/gdbstub.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/target/hexagon/gdbstub.c b/target/hexagon/gdbstub.c
> index ca6d4a98369..85d9845cc94 100644
> --- a/target/hexagon/gdbstub.c
> +++ b/target/hexagon/gdbstub.c
> @@ -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;
>  
> -- 
> 2.55.0
> 

Reviewed-by: Anton Johansson <anjo@rev.ng>