Blame SOURCES/gdb-rhbz1320945-power9pre-2of3.patch

a094f6
commit 4f6ffcd38d90eef0e0afc2fd32d7086c706b9bb0
a094f6
Author: Peter Bergner <bergner@vnet.ibm.com>
a094f6
Date:   Tue Jul 30 02:26:09 2013 +0000
a094f6
a094f6
    opcodes/
a094f6
            * ppc-dis.c (powerpc_init_dialect): Use ppc_parse_cpu() to set dialect.
a094f6
a094f6
### a/opcodes/ChangeLog
a094f6
### b/opcodes/ChangeLog
a094f6
## -1,3 +1,7 @@
a094f6
+2013-07-29  Peter Bergner <bergner@vnet.ibm.com>
a094f6
+
a094f6
+	* ppc-dis.c (powerpc_init_dialect): Use ppc_parse_cpu() to set dialect.
a094f6
+
a094f6
 2013-07-26  Sergey Guriev  <sergey.s.guriev@intel.com>
a094f6
 	    Alexander Ivchenko  <alexander.ivchenko@intel.com>
a094f6
 	    Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
a094f6
--- a/opcodes/ppc-dis.c
a094f6
+++ b/opcodes/ppc-dis.c
a094f6
@@ -263,56 +263,39 @@ powerpc_init_dialect (struct disassemble_info *info)
a094f6
     {
a094f6
     case bfd_mach_ppc_403:
a094f6
     case bfd_mach_ppc_403gc:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_403);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "403");
a094f6
       break;
a094f6
     case bfd_mach_ppc_405:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_403 | PPC_OPCODE_405);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "405");
a094f6
       break;
a094f6
     case bfd_mach_ppc_601:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_601);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "601");
a094f6
       break;
a094f6
     case bfd_mach_ppc_a35:
a094f6
     case bfd_mach_ppc_rs64ii:
a094f6
     case bfd_mach_ppc_rs64iii:
a094f6
-      dialect = (PPC_OPCODE_POWER | PPC_OPCODE_POWER2 | PPC_OPCODE_64);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "pwr2") | PPC_OPCODE_64;
a094f6
       break;
a094f6
     case bfd_mach_ppc_e500:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_SPE
a094f6
-		 | PPC_OPCODE_ISEL | PPC_OPCODE_EFS | PPC_OPCODE_BRLOCK
a094f6
-		 | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI
a094f6
-		 | PPC_OPCODE_E500);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "e500");
a094f6
       break;
a094f6
     case bfd_mach_ppc_e500mc:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_ISEL
a094f6
-		 | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI
a094f6
-		 | PPC_OPCODE_E500MC);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "e500mc");
a094f6
       break;
a094f6
     case bfd_mach_ppc_e500mc64:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_ISEL
a094f6
-		 | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI
a094f6
-		 | PPC_OPCODE_E500MC | PPC_OPCODE_64 | PPC_OPCODE_POWER5
a094f6
-		 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "e500mc64");
a094f6
       break;
a094f6
     case bfd_mach_ppc_e5500:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_ISEL
a094f6
-		 | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI
a094f6
-		 | PPC_OPCODE_E500MC | PPC_OPCODE_64 | PPC_OPCODE_POWER4
a094f6
-		 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6
a094f6
-		 | PPC_OPCODE_POWER7);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "e5500");
a094f6
       break;
a094f6
     case bfd_mach_ppc_e6500:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_ISEL
a094f6
-		 | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI
a094f6
-		 | PPC_OPCODE_E500MC | PPC_OPCODE_64 | PPC_OPCODE_ALTIVEC
a094f6
-		 | PPC_OPCODE_ALTIVEC2 | PPC_OPCODE_E6500 | PPC_OPCODE_POWER4
a094f6
-		 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "e6500");
a094f6
       break;
a094f6
     case bfd_mach_ppc_titan:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_PMR
a094f6
-		 | PPC_OPCODE_RFMCI | PPC_OPCODE_TITAN);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "titan");
a094f6
       break;
a094f6
     case bfd_mach_ppc_vle:
a094f6
-      dialect = (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_VLE);
a094f6
+      dialect = ppc_parse_cpu (dialect, &sticky, "vle");
a094f6
       break;
a094f6
     default:
a094f6
       dialect = ppc_parse_cpu (dialect, &sticky, "power8") | PPC_OPCODE_ANY;