* hppa-dis.c (print_insn_hppa <2 bit space register>): Do not print
authorAlan Modra <amodra@gmail.com>
Tue, 25 Feb 2003 00:20:29 +0000 (00:20 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 25 Feb 2003 00:20:29 +0000 (00:20 +0000)
the space register when the value is zero.

opcodes/ChangeLog
opcodes/hppa-dis.c

index de54da64f71f5b89af696a59e5200d01b2b01551..596567d01c414ab128699fca29fc0546abd8325f 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-25  Matthew Wilcox  <willy@debian.org>
+
+       * hppa-dis.c (print_insn_hppa <2 bit space register>): Do not print
+       the space register when the value is zero.
+
 2003-02-23  Elias Athanasopoulos  <elathan@phys.uoa.gr>
 
        * mips-dis.c (print_mips_disassembler_options): Make 'i' unsigned,
index d9ab9dd99d506e5200204c7aa0de38eba6905513..4a7bde225e284b6d47612b3ae79d3fb6634f2204 100644 (file)
@@ -541,8 +541,12 @@ print_insn_hppa (memaddr, info)
                  fput_const (extract_5_load (insn), info);
                  break;
                case 's':
-                 (*info->fprintf_func) (info->stream,
-                                        "sr%d", GET_FIELD (insn, 16, 17));
+                 {
+                   int space = GET_FIELD (insn, 16, 17);
+                   /* Zero means implicit addressing, not use of sr0.  */
+                   if (space != 0)
+                     (*info->fprintf_func) (info->stream, "sr%d", space);
+                 }
                  break;
 
                case 'S':