]> git.proxmox.com Git - mirror_qemu.git/commit
target/riscv: Tell gdbstub the correct number of CSRs
authorJonathan Behrens <jonathan@fintelia.io>
Mon, 14 Oct 2019 15:45:27 +0000 (11:45 -0400)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 28 Oct 2019 14:47:28 +0000 (07:47 -0700)
commita555ad1399c9eda9da0c5f8e40acd94d87957054
tree633c79b0623aa786b44aa30de9c867e28a277ab3
parent2738b3b555efaf206b814677966e8e3510c64a8a
target/riscv: Tell gdbstub the correct number of CSRs

If the number of registers reported to the gdbstub code does not match the
number in the associated XML file, then the register numbers used by the stub
may get out of sync with a remote GDB instance.

Signed-off-by: Jonathan Behrens <jonathan@fintelia.io>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/gdbstub.c