Skip to contentSkip to conversation

Fix a typo in 'P' packet processing for M68K.

PATCH Aurelien Jarno 2 participants 2 messages Jan 14, 2010 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Kazu Hirata

Hi,

Attached is a patch to fix a typo in 'P' packet processing for M68K.

Without this patch, QEMU fails to honor GDB's P packets from GDB (writing to registers) for the address registers (A0 - A7).

The problem is because of an obvious typo. Notice that the second "if" condition is meant to be n < 16 in:

Quoted 6 lines
  if (n < 8) {
    :
  } else if (n < 8) {

I don't have a write access to the repository. Could someone apply this patch if it's OK?

This patch looks ok, but is missing a Signed-of-by:

Quoted 20 lines

Thanks in advance,

Kazu Hirata

gdbstub.c +1 -1
index 055093f..1a1640a 100644
@@ -1014,7 +1014,7 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t *mem_buf, int n)
     if (n < 8) {
         /* D0-D7 */
         env->dregs[n] = tmp;
-    } else if (n < 8) {
+    } else if (n < 16) {
         /* A0-A7 */
         env->aregs[n - 8] = tmp;
     } else {
Signature · 2 lines
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net
#2 lore raw

Hi Aurelien,

Quoted 4 lines
Quoted 2 lines

I don't have a write access to the repository. Could someone apply this patch if it's OK?

This patch looks ok, but is missing a Signed-of-by:

Thank you for a review. I'm going to resubmit the patch in the git style.

Kazu Hirata