Blame SOURCES/gdb-rhbz1187581-power8-regs-not-in-8-2-06of15.patch

ce65b8
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
ce65b8
From: Keith Seitz <keiths@redhat.com>
ce65b8
Date: Fri, 11 Jan 2019 17:02:14 -0500
ce65b8
Subject: gdb-rhbz1187581-power8-regs-not-in-8-2-06of15.patch
ce65b8
ce65b8
;; [PowerPC] Remove rs6000_pseudo_register_reggroup_p
ce65b8
;; Pedro Franco de Carvalho
ce65b8
ce65b8
    [PowerPC] Remove rs6000_pseudo_register_reggroup_p
ce65b8
ce65b8
    This patch removes rs6000_pseudo_register_reggroup_p.
ce65b8
ce65b8
    Group membership for the pseudoregisters can be detected through their
ce65b8
    types in default_register_reggroup_p through
ce65b8
    tdesc_register_reggroup_p.
ce65b8
ce65b8
    gdb/ChangeLog:
ce65b8
    2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
ce65b8
ce65b8
        * rs6000-tdep.c: Remove reggroups.h include.
ce65b8
        (rs6000_pseudo_register_reggroup_p): Remove.
ce65b8
        (rs6000_gdbarch_init): Remove call to
ce65b8
        set_tdesc_pseudo_register_reggroup_p.
ce65b8
ce65b8
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
ce65b8
--- a/gdb/rs6000-tdep.c
ce65b8
+++ b/gdb/rs6000-tdep.c
ce65b8
@@ -36,7 +36,6 @@
ce65b8
 #include "infcall.h"
ce65b8
 #include "sim-regno.h"
ce65b8
 #include "gdb/sim-ppc.h"
ce65b8
-#include "reggroups.h"
ce65b8
 #include "dwarf2-frame.h"
ce65b8
 #include "target-descriptions.h"
ce65b8
 #include "user-regs.h"
ce65b8
@@ -2461,27 +2460,6 @@ rs6000_pseudo_register_type (struct gdbarch *gdbarch, int regnum)
ce65b8
     return builtin_type (gdbarch)->builtin_double;
ce65b8
 }
ce65b8
 
ce65b8
-/* Is REGNUM a member of REGGROUP?  */
ce65b8
-static int
ce65b8
-rs6000_pseudo_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
ce65b8
-				   struct reggroup *group)
ce65b8
-{
ce65b8
-  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
ce65b8
-
ce65b8
-  /* These are the only pseudo-registers we support.  */
ce65b8
-  gdb_assert (IS_SPE_PSEUDOREG (tdep, regnum)
ce65b8
-	      || IS_DFP_PSEUDOREG (tdep, regnum)
ce65b8
-	      || IS_VSX_PSEUDOREG (tdep, regnum)
ce65b8
-	      || IS_EFP_PSEUDOREG (tdep, regnum));
ce65b8
-
ce65b8
-  /* These are the e500 pseudo-registers or the POWER7 VSX registers.  */
ce65b8
-  if (IS_SPE_PSEUDOREG (tdep, regnum) || IS_VSX_PSEUDOREG (tdep, regnum))
ce65b8
-    return group == all_reggroup || group == vector_reggroup;
ce65b8
-  else
ce65b8
-    /* PPC decimal128 or Extended FP pseudo-registers.  */
ce65b8
-    return group == all_reggroup || group == float_reggroup;
ce65b8
-}
ce65b8
-
ce65b8
 /* The register format for RS/6000 floating point registers is always
ce65b8
    double, we need a conversion if the memory format is float.  */
ce65b8
 
ce65b8
@@ -6493,8 +6471,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
ce65b8
     }
ce65b8
 
ce65b8
   set_tdesc_pseudo_register_type (gdbarch, rs6000_pseudo_register_type);
ce65b8
-  set_tdesc_pseudo_register_reggroup_p (gdbarch,
ce65b8
-					rs6000_pseudo_register_reggroup_p);
ce65b8
   tdesc_use_registers (gdbarch, tdesc, tdesc_data);
ce65b8
 
ce65b8
   /* Override the normal target description method to make the SPE upper