From: Richard Sandiford <rsandifo@cambridge.redhat.com>
To: cgen@sources.redhat.com
Subject: Re: CGEN patch
Date: Wed, 03 Jan 2001 02:52:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.21.0101031050440.30521-100000@host149.cambridge.redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0012211621260.17214-100000@host149.cambridge.redhat.com>
Oops, I missed one. Checked against fr30. Please check in if OK.
2001-01-03 Richard Sandiford <r.sandiford@redhat.com>
* cgen-dis.in (read_insn): Use bfd_get_bits()
Index: opcodes/cgen-dis.in
===================================================================
RCS file: /cvs/src/src/opcodes/cgen-dis.in,v
retrieving revision 1.3
diff -c -r1.3 cgen-dis.in
*** cgen-dis.in 2000/11/07 17:20:25 1.3
--- cgen-dis.in 2001/01/03 10:49:49
***************
*** 211,231 ****
ex_info->valid = (1 << buflen) - 1;
ex_info->insn_bytes = buf;
! switch (buflen)
! {
! case 1:
! *insn_value = buf[0];
! break;
! case 2:
! *insn_value = info->endian == BFD_ENDIAN_BIG ? bfd_getb16 (buf) : bfd_getl16 (buf);
! break;
! case 4:
! *insn_value = info->endian == BFD_ENDIAN_BIG ? bfd_getb32 (buf) : bfd_getl32 (buf);
! break;
! default:
! abort ();
! }
!
return 0;
}
--- 211,217 ----
ex_info->valid = (1 << buflen) - 1;
ex_info->insn_bytes = buf;
! *insn_value = bfd_get_bits (buf, buflen * 8, info->endian == BFD_ENDIAN_BIG);
return 0;
}
next prev parent reply other threads:[~2001-01-03 2:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-21 8:24 Richard Sandiford
2000-12-21 10:45 ` Frank Ch. Eigler
2000-12-21 14:04 ` Doug Evans
2001-01-02 6:51 ` Richard Sandiford
2001-01-02 8:34 ` Frank Ch. Eigler
2001-01-03 2:52 ` Richard Sandiford [this message]
2001-01-03 7:10 ` Frank Ch. Eigler
2000-12-21 10:20 Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0101031050440.30521-100000@host149.cambridge.redhat.com \
--to=rsandifo@cambridge.redhat.com \
--cc=cgen@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).