target/microblaze: Tidy gdbstub
commit8a42ddf013738a15c9cb739b9dfc07500cb27a21
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 18 Aug 2020 18:26:59 +0000 (18 11:26 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Sep 2020 14:41:38 +0000 (1 07:41 -0700)
tree73adb6410b24c19f4e912ad777a6569034660869
parent853c93ed0d7d462224a6d74c474cf89981a2561b
target/microblaze: Tidy gdbstub

Use an enumeration for the gdb register mapping.  Use one
switch statement for the entire dispatch.  Drop sreg_map
and simply enumerate those cases explicitly.  Force r0 to
have value 0 and ignore writes.

Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/microblaze/gdbstub.c