Skip to content

Commit

Permalink
target/ppc: Remove references to gdb_has_xml
Browse files Browse the repository at this point in the history
GDB has XML support since 6.7 which was released in 2007.
It's time to remove support for old GDB versions without XML support.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230912224107.29669-11-akihiko.odaki@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-18-alex.bennee@linaro.org>
  • Loading branch information
akihikodaki authored and stsquad committed Oct 11, 2023
1 parent dd2f7e2 commit 8e6d3ea
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions target/ppc/gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ static int ppc_gdb_register_len(int n)
case 0 ... 31:
/* gprs */
return sizeof(target_ulong);
case 32 ... 63:
/* fprs */
if (gdb_has_xml()) {
return 0;
}
return 8;
case 66:
/* cr */
case 69:
Expand All @@ -74,12 +68,6 @@ static int ppc_gdb_register_len(int n)
case 68:
/* ctr */
return sizeof(target_ulong);
case 70:
/* fpscr */
if (gdb_has_xml()) {
return 0;
}
return sizeof(target_ulong);
default:
return 0;
}
Expand Down Expand Up @@ -132,9 +120,6 @@ int ppc_cpu_gdb_read_register(CPUState *cs, GByteArray *buf, int n)
if (n < 32) {
/* gprs */
gdb_get_regl(buf, env->gpr[n]);
} else if (n < 64) {
/* fprs */
gdb_get_reg64(buf, *cpu_fpr_ptr(env, n - 32));
} else {
switch (n) {
case 64:
Expand All @@ -158,9 +143,6 @@ int ppc_cpu_gdb_read_register(CPUState *cs, GByteArray *buf, int n)
case 69:
gdb_get_reg32(buf, cpu_read_xer(env));
break;
case 70:
gdb_get_reg32(buf, env->fpscr);
break;
}
}
mem_buf = buf->data + buf->len - r;
Expand Down

0 comments on commit 8e6d3ea

Please sign in to comment.