]> git.proxmox.com Git - mirror_qemu.git/commit
target/xtensa: handle unknown registers in gdbstub
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 3 Jun 2017 09:11:13 +0000 (02:11 -0700)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 24 Aug 2017 21:50:05 +0000 (16:50 -0500)
commitbace1f90f9207ec79e9d28eb668532b43ac8b81f
tree2013f38964a3a9884983aa01209441f3a063ed2b
parent3b2f3a4691a18b52969e64cafa703e0fff7711c4
target/xtensa: handle unknown registers in gdbstub

Xtensa cores may have registers of types/sizes not supported by the
gdbstub accessors. Ignore writes to such registers and return zero on
read, but always return correct register size, so that gdb on the other
side is able to access all registers in the packet holding unsupported
registers in the middle. This fixes gdb interaction with cores that have
vector/custom TIE registers.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
(cherry picked from commit dd7b952b793e341c905355581a21cdbaa8b13c31)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/xtensa/gdbstub.c