]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/microblaze: gdb: Fix incorrect SReg reporting
authorJoe Komlodi <joe.komlodi@xilinx.com>
Wed, 13 May 2020 18:08:47 +0000 (11:08 -0700)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Thu, 14 May 2020 14:01:02 +0000 (16:01 +0200)
commit201dd7d37b654621c5727e49c666cbfc56e61d58
treeec4735cf7843ffbfaefd686dcf46fdf77fc34c20
parenta44e82db0c0bada34af613029cf976f8bb7859d9
target/microblaze: gdb: Fix incorrect SReg reporting

SRegs used to be reported to GDB by iterating over the SRegs array,
however we do not store them in an order that allows them to be
reported to GDB in that way.

To fix this, a simple map is used to map the register GDB wants to its
location in the SRegs array.

Signed-off-by: Joe Komlodi <komlodi@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-Id: <1589393329-223076-3-git-send-email-komlodi@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/microblaze/gdbstub.c