diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2001-05-07 17:55:21 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2001-05-07 17:55:21 +0000 |
commit | a00ad97d613fec56fab39a83da4205bffc9dc4cc (patch) | |
tree | 40e4412555df4f12563ca4f4056f7f7091a3d124 /opcodes/cgen-ibld.in | |
parent | e00bc6a7ba6342b27c657c0f59b27e06bd870346 (diff) | |
download | gdb-a00ad97d613fec56fab39a83da4205bffc9dc4cc.zip gdb-a00ad97d613fec56fab39a83da4205bffc9dc4cc.tar.gz gdb-a00ad97d613fec56fab39a83da4205bffc9dc4cc.tar.bz2 |
* cgen asm/disasm
[opcodes/ChangeLog]
2001-05-07 Frank Ch. Eigler <fche@redhat.com>
* cgen-dis.in (default_print_insn): Tolerate min<base instructions
even at end of a section.
* cgen-ibld.in (extract_normal): Tolerate min!=base!=max instructions
by ignoring precariously-unpacked insn_value in favor of raw buffer.
[cgen/ChangeLog]
2001-05-07 Frank Ch. Eigler <fche@redhat.com>
* iformat.scm (compute-insn-base-mask-length): Rewrite to tolerate
various-base-length instruction sets.
Diffstat (limited to 'opcodes/cgen-ibld.in')
-rw-r--r-- | opcodes/cgen-ibld.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/cgen-ibld.in b/opcodes/cgen-ibld.in index 528e609..ca2f1e5 100644 --- a/opcodes/cgen-ibld.in +++ b/opcodes/cgen-ibld.in @@ -428,9 +428,9 @@ extract_normal (cd, ex_info, insn_value, attrs, word_offset, start, length, word_length = total_length; } - /* Does the value reside in INSN_VALUE? */ + /* Does the value reside in INSN_VALUE, and at the right alignment? */ - if (CGEN_INT_INSN_P || word_offset == 0) + if (CGEN_INT_INSN_P || (word_offset == 0 && word_length == total_length)) { if (CGEN_INSN_LSB0_P) value = insn_value >> ((word_offset + start + 1) - length); |