Combine register lists of smp targets.
authorTim Newsome <tim@sifive.com>
Fri, 9 Jul 2021 00:43:00 +0000 (17:43 -0700)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 29 Jan 2022 18:25:06 +0000 (18:25 +0000)
commit6541233aa78d40200092920ec4a72e3917ae3b6d
tree081b157f67ac6ca82a6eaa5d1e4ca54d8fe81376
parent93f2276cdd99ad9e9d844150553621ea5d8524dd
Combine register lists of smp targets.

This is helpful when you want to pretend to gdb that your heterogeneous
multicore system is homogeneous, because gdb cannot handle heterogeneous
systems. This won't always works, but works fine if e.g. one of the
cores has an FPU while the other does not. (Specifically, HiFive
Unleashed has 1 core with no FPU, plus 4 cores with an FPU.)

Signed-off-by: Tim Newsome <tim@sifive.com>
Change-Id: I05ff4c28646778fbc00327bc510be064bfe6c9f0
Reviewed-on: https://review.openocd.org/c/openocd/+/6362
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/server/gdb_server.c