target/ppc: Update gdbstub to read SPR's CFAR, DEC, HDEC, TB-L/U
commit0c0fc268dfd4dbaf59e59377ca8a390f362256ad
authorSaif Abrar <saif.abrar@linux.vnet.ibm.com>
Mon, 18 Sep 2023 09:26:16 +0000 (18 04:26 -0500)
committerNicholas Piggin <npiggin@gmail.com>
Fri, 23 Feb 2024 13:24:43 +0000 (23 23:24 +1000)
treefd3cc94900039271a1438cb71530164f774f1f73
parentc295d3b0907ce40d45d9068d875f91363db4c194
target/ppc: Update gdbstub to read SPR's CFAR, DEC, HDEC, TB-L/U

SPR's CFAR, DEC, HDEC, TB-L/U are not implemented as part of CPUPPCState.
Hence, gdbstub is not able to access them using (CPUPPCState *)env->spr[] array.
Update gdb_get_spr_reg() method to handle these SPR's specifically.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Saif Abrar <saif.abrar@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/gdbstub.c