From a3d5a51211f7ffb2355b9605bc90be84b64c9294 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 25 Feb 2003 00:20:29 +0000 Subject: * hppa-dis.c (print_insn_hppa <2 bit space register>): Do not print the space register when the value is zero. --- opcodes/hppa-dis.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'opcodes/hppa-dis.c') diff --git a/opcodes/hppa-dis.c b/opcodes/hppa-dis.c index d9ab9dd99d..4a7bde225e 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': -- cgit v1.2.1