projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Missing ChangeLog entries for 2002-01-22 Makefile updates
[deliverable/binutils-gdb.git]
/
opcodes
/
openrisc-dis.c
diff --git
a/opcodes/openrisc-dis.c
b/opcodes/openrisc-dis.c
index 6bbb0cbe7f2a7526562e8f4b9f9c7b357bc0497e..628a86c8304949bdfedd9be661a54406880ac97e 100644
(file)
--- a/
opcodes/openrisc-dis.c
+++ b/
opcodes/openrisc-dis.c
@@
-75,8
+75,7
@@
void openrisc_cgen_print_operand
This function could be moved into `print_insn_normal', but keeping it
separate makes clear the interface between `print_insn_normal' and each of
This function could be moved into `print_insn_normal', but keeping it
separate makes clear the interface between `print_insn_normal' and each of
- the handlers.
-*/
+ the handlers. */
void
openrisc_cgen_print_operand (cd, opindex, xinfo, fields, attrs, pc, length)
void
openrisc_cgen_print_operand (cd, opindex, xinfo, fields, attrs, pc, length)
@@
-318,9
+317,13
@@
print_insn (cd, pc, info, buf, buflen)
CGEN_INSN_INT insn_value;
const CGEN_INSN_LIST *insn_list;
CGEN_EXTRACT_INFO ex_info;
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. */
/* 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
/* Fill in ex_info fields like read_insn would. Don't actually call
read_insn, since the incoming buffer is already read (and possibly
This page took
0.024482 seconds
and
4
git commands to generate.