]> Git Repo - qemu.git/commitdiff
target/xtensa: fix gdbstub register counts
authorMax Filippov <[email protected]>
Thu, 16 Aug 2018 17:33:04 +0000 (10:33 -0700)
committerMax Filippov <[email protected]>
Mon, 20 Aug 2018 00:14:25 +0000 (17:14 -0700)
This fixes communication with gdb in the presence of type-5 (TIE state
mapped on user registers) and type-7 (special case of masked registers)
registers in the xtensa core config.

Cc: [email protected]
Signed-off-by: Max Filippov <[email protected]>
target/xtensa/helper.c

index c9a6132700367678dcf9f26950702caaef328493..efb3cef1281329f4b308ccb62099fd0b84142de9 100644 (file)
@@ -100,7 +100,9 @@ void xtensa_finalize_config(XtensaConfig *config)
         unsigned n_core_regs = 0;
 
         for (i = 0; config->gdb_regmap.reg[i].targno >= 0; ++i) {
-            if (config->gdb_regmap.reg[i].type != 6) {
+            if (config->gdb_regmap.reg[i].type != 5 &&
+                config->gdb_regmap.reg[i].type != 6 &&
+                config->gdb_regmap.reg[i].type != 7) {
                 ++n_regs;
                 if ((config->gdb_regmap.reg[i].flags & 0x1) == 0) {
                     ++n_core_regs;
This page took 0.043938 seconds and 4 git commands to generate.