From 2e1ef6b479bb214b0133c4b49bcf88dda9e3c1e1 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 14 Nov 2001 19:48:54 +0000 Subject: [PATCH] 2001-11-14 Dave Brolley * m32r-dis.c: Regenerated. * fr30-dis.c: Regenerated. --- opcodes/ChangeLog | 5 +++++ opcodes/fr30-dis.c | 6 +++++- opcodes/m32r-dis.c | 6 +++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index c1c21f801c4..b041d52184e 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2001-11-14 Dave Brolley + + * m32r-dis.c: Regenerated. + * fr30-dis.c: Regenerated. + 2001-11-14 Andreas Jaeger * i386-dis.c (print_insn): Use x86-64 as option. diff --git a/opcodes/fr30-dis.c b/opcodes/fr30-dis.c index 5de2681d1fd..7f04125b131 100644 --- a/opcodes/fr30-dis.c +++ b/opcodes/fr30-dis.c @@ -500,9 +500,13 @@ print_insn (cd, pc, info, buf, buflen) CGEN_INSN_INT insn_value; const CGEN_INSN_LIST *insn_list; CGEN_EXTRACT_INFO ex_info; + int basesize; /* Extract base part of instruction, just in case CGEN_DIS_* uses it. */ - insn_value = cgen_get_insn_value (cd, buf, buflen * 8); + basesize = cd->base_insn_bitsize < buflen * 8 ? + cd->base_insn_bitsize : buflen * 8; + insn_value = cgen_get_insn_value (cd, buf, basesize); + /* Fill in ex_info fields like read_insn would. Don't actually call read_insn, since the incoming buffer is already read (and possibly diff --git a/opcodes/m32r-dis.c b/opcodes/m32r-dis.c index 287d6bc935a..f2ce72a6730 100644 --- a/opcodes/m32r-dis.c +++ b/opcodes/m32r-dis.c @@ -431,9 +431,13 @@ print_insn (cd, pc, info, buf, buflen) CGEN_INSN_INT insn_value; const CGEN_INSN_LIST *insn_list; CGEN_EXTRACT_INFO ex_info; + int basesize; /* Extract base part of instruction, just in case CGEN_DIS_* uses it. */ - insn_value = cgen_get_insn_value (cd, buf, buflen * 8); + basesize = cd->base_insn_bitsize < buflen * 8 ? + cd->base_insn_bitsize : buflen * 8; + insn_value = cgen_get_insn_value (cd, buf, basesize); + /* Fill in ex_info fields like read_insn would. Don't actually call read_insn, since the incoming buffer is already read (and possibly -- 2.30.2