diff options
author | Alan Modra <amodra@gmail.com> | 2003-02-25 00:20:29 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-02-25 00:20:29 +0000 |
commit | 75776faa40b1d1695c766b0301abb4c4435ba9e4 (patch) | |
tree | 517d25ea872cfdd734ba200f4c2f3243a22a16a5 /opcodes/hppa-dis.c | |
parent | *** empty log message *** (diff) | |
download | binutils-gdb-75776faa40b1d1695c766b0301abb4c4435ba9e4.tar.gz binutils-gdb-75776faa40b1d1695c766b0301abb4c4435ba9e4.tar.bz2 binutils-gdb-75776faa40b1d1695c766b0301abb4c4435ba9e4.zip |
* hppa-dis.c (print_insn_hppa <2 bit space register>): Do not print
the space register when the value is zero.
Diffstat (limited to 'opcodes/hppa-dis.c')
-rw-r--r-- | opcodes/hppa-dis.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c index d9ab9dd99d5..4a7bde225e2 100644 --- a/opcodes/hppa-dis.c +++ b/opcodes/hppa-dis.c @@ -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': |