* hppa-dis.c (print_insn_hppa <2 bit space register>): Do not print

the space register when the value is zero.
This commit is contained in:
Alan Modra 2003-02-25 00:20:29 +00:00
parent 48b62fee11
commit 75776faa40
2 changed files with 11 additions and 2 deletions

View 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,

View 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':