diff options
author | Matthew Green <mrg@redhat.com> | 2002-01-11 07:24:59 +0000 |
---|---|---|
committer | Matthew Green <mrg@redhat.com> | 2002-01-11 07:24:59 +0000 |
commit | 1951c6f7f83b8f9d1d59355bf0b46d334caf1132 (patch) | |
tree | 52e86873e4d6a74a0dd61e6352b8916831bac6f2 /opcodes/xstormy16-dis.c | |
parent | 352ed7b4c28a32bfad7f189dd4c8bd0ec5f4fca2 (diff) | |
download | gdb-1951c6f7f83b8f9d1d59355bf0b46d334caf1132.zip gdb-1951c6f7f83b8f9d1d59355bf0b46d334caf1132.tar.gz gdb-1951c6f7f83b8f9d1d59355bf0b46d334caf1132.tar.bz2 |
[cgen/ChangeLog]
* cpu/xstormy16.cpu (gr-Rbj-names): Rename this ...
(gr-Rb-names): ... to this.
(h-Rb): New hardware peice.
(h-Rbj): Use gr-Rb-names.
(Rb): Use h-Rb.
(holdx): New instruction.
[opcodes/ChangeLog]
* xstormy16-asm.c: Regenerate.
* xstormy16-desc.c: Likewise.
* xstormy16-desc.h: Likewise.
* xstormy16-dis.c: Likewise.
* xstormy16-opc.c: Likewise.
* xstormy16-opc.h: Likewise.
[gas/testsuite/ChangeLog]
* gas/xstormy16/allinsn.sh (movf, jmp, call, icall): Update.
* gas/xstormy16/allinsn.d: Regenerate.
* gas/xstormy16/allinsn.s: Regenerate.
[sid/component/cgen-cpu/xstormy16/ChangeLog]
* xstormy16.cxx (do_holdx): Define.
* xstormy16.h (do_holdx): Declare.
Diffstat (limited to 'opcodes/xstormy16-dis.c')
-rw-r--r-- | opcodes/xstormy16-dis.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/opcodes/xstormy16-dis.c b/opcodes/xstormy16-dis.c index 595ed2a..bd6c593 100644 --- a/opcodes/xstormy16-dis.c +++ b/opcodes/xstormy16-dis.c @@ -92,10 +92,10 @@ xstormy16_cgen_print_operand (cd, opindex, xinfo, fields, attrs, pc, length) switch (opindex) { case XSTORMY16_OPERAND_RB : - print_keyword (cd, info, & xstormy16_cgen_opval_gr_names, fields->f_Rb, 0); + print_keyword (cd, info, & xstormy16_cgen_opval_gr_Rb_names, fields->f_Rb, 0); break; case XSTORMY16_OPERAND_RBJ : - print_keyword (cd, info, & xstormy16_cgen_opval_gr_Rbj_names, fields->f_Rbj, 0); + print_keyword (cd, info, & xstormy16_cgen_opval_gr_Rb_names, fields->f_Rbj, 0); break; case XSTORMY16_OPERAND_RD : print_keyword (cd, info, & xstormy16_cgen_opval_gr_names, fields->f_Rd, 0); @@ -350,9 +350,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 |