]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/xtensa: drop num_[core_]regs from dc232b/dc233c configs
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 31 Oct 2018 21:21:49 +0000 (14:21 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 20 Nov 2018 20:20:41 +0000 (12:20 -0800)
Now that xtensa_count_regs does the right thing, remove manual
initialization of these fields from the affected configurations and let
xtensa_finalize_config initialize them. Add XTREG_END to terminate
register lists.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target/xtensa/core-dc232b.c
target/xtensa/core-dc232b/gdb-config.inc.c
target/xtensa/core-dc233c.c
target/xtensa/core-dc233c/gdb-config.inc.c

index 71313378409eff33877b01bdc301b0199fa02719..7851bcb63687d995edff12fa059c6a9c5923d850 100644 (file)
@@ -40,8 +40,6 @@
 static XtensaConfig dc232b __attribute__((unused)) = {
     .name = "dc232b",
     .gdb_regmap = {
-        .num_regs = 120,
-        .num_core_regs = 52,
         .reg = {
 #include "core-dc232b/gdb-config.inc.c"
         }
index 13aba5edecd64eb473266885a63a3ceef7d4b1e5..d87168628be865d31726160daddeae8b985777be 100644 (file)
           0, 0, 0, 0, 0, 0)
   XTREG(119, 476, 32, 4, 4, 0x000f, 0x0006, -2, 8, 0x0100, a15,
           0, 0, 0, 0, 0, 0)
+  XTREG_END
index d701e3f5de071823a0200bbbf6fb8ff9d64af07a..8853bfd4d08f9492fb870e2c9c5b4d0df1a21acc 100644 (file)
@@ -40,8 +40,6 @@
 static XtensaConfig dc233c __attribute__((unused)) = {
     .name = "dc233c",
     .gdb_regmap = {
-        .num_regs = 121,
-        .num_core_regs = 52,
         .reg = {
 #include "core-dc233c/gdb-config.inc.c"
         }
index b632341b28ec6a7f204b30896218b2fdaf376d4b..7e8963227fc0568fbcdf6bb056466e76b271ce7a 100644 (file)
@@ -143,3 +143,4 @@ XTREG(117, 468, 32, 4, 4, 0x000c, 0x0006, -2, 8, 0x0100, a12,         0, 0, 0, 0
 XTREG(118, 472, 32, 4, 4, 0x000d, 0x0006, -2, 8, 0x0100, a13,         0, 0, 0, 0, 0, 0)
 XTREG(119, 476, 32, 4, 4, 0x000e, 0x0006, -2, 8, 0x0100, a14,         0, 0, 0, 0, 0, 0)
 XTREG(120, 480, 32, 4, 4, 0x000f, 0x0006, -2, 8, 0x0100, a15,         0, 0, 0, 0, 0, 0)
+XTREG_END