On 7/14/23 18:26, Peter Maydell wrote:
+++ b/target/sparc/gdbstub.c
@@ -96,7 +96,10 @@ int sparc_cpu_gdb_read_register(CPUState *cs, GByteArray
*mem_buf, int n)
case 83:
return gdb_get_regl(mem_buf, env->fsr);
case 84:
- return gdb_get_regl(mem_buf, env->fprs);
+ {
+ target_ulong fprs = env->fprs;
+ return gdb_get_regl(mem_buf, fprs);
+ }
Surely no change at all here. The compiler zero-extends uint32_t to target_ulong in the parameter to gdb_get_regl.
r~
