All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH-for-10.1] target/i386/gdbstub: Replace ldtul_p() -> ldq_p()
@ 2025-03-25 15:45 Philippe Mathieu-Daudé
  2025-03-25 18:36 ` Richard Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-03-25 15:45 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Alex Bennée, Zhao Liu, Anton Johansson,
	Pierrick Bouvier, Philippe Mathieu-Daudé

When TARGET_LONG_BITS == 64, ldtul_p() expand to ldq_p().
Directly use the expanded form for clarity.

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

diff --git a/target/i386/gdbstub.c b/target/i386/gdbstub.c
index 04c49e802d7..3dc022fccf7 100644
--- a/target/i386/gdbstub.c
+++ b/target/i386/gdbstub.c
@@ -287,9 +287,9 @@ int x86_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
     if (n < CPU_NB_REGS) {
         if (TARGET_LONG_BITS == 64) {
             if (env->hflags & HF_CS64_MASK) {
-                env->regs[gpr_map[n]] = ldtul_p(mem_buf);
+                env->regs[gpr_map[n]] = ldq_p(mem_buf);
             } else if (n < CPU_NB_REGS32) {
-                env->regs[gpr_map[n]] = ldtul_p(mem_buf) & 0xffffffffUL;
+                env->regs[gpr_map[n]] = ldq_p(mem_buf) & 0xffffffffUL;
             }
             return sizeof(target_ulong);
         } else if (n < CPU_NB_REGS32) {
-- 
2.47.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-26 16:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 15:45 [PATCH-for-10.1] target/i386/gdbstub: Replace ldtul_p() -> ldq_p() Philippe Mathieu-Daudé
2025-03-25 18:36 ` Richard Henderson
2025-03-26  8:50 ` Zhao Liu
2025-03-26 11:26 ` Alex Bennée
2025-12-26 16:21   ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.