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

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