qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
To: qemu-devel@nongnu.org
Cc: rth@twiddle.net
Subject: [Qemu-devel] [PATCH 0/6] TriCore: add RRR1, RRRR, RRRW, SYS instructions
Date: Wed, 25 Feb 2015 16:14:35 +0000	[thread overview]
Message-ID: <1424880881-1594-1-git-send-email-kbastian@mail.uni-paderborn.de> (raw)

Hi, 

this should be the last major bit of the TriCore integer instructions. The floating point ones are a whole
different story. These patches depend on my other TriCore patches (https://patchwork.ozlabs.org/patch/438866/)
and add the promised mac instructions for subtract. 
Note here that msub.q behaves a bit strange, e.g. a - (((b * c) << n) >> size), with size = size of b and c. 
So the result is only using the upper half of (a * b) << n. However if the lower half contains a result > 0 this 
is rounded up to 1 and added to the upper half, since everything is in q31 format. 

Also this patchset adds the remaining instructions of the RRRR, RRRW and SYS format. Note here that I only implemented
non trap instructions, since I'm planing to do trap handling in another patch.

Cheers,
Bastian

Bastian Koppelmann (6):
  target-tricore: Add instructions of RRR1 opcode format, which have
    0xa3 as first opcode
  target-tricore: Add instructions of RRR1 opcode format, which have
    0x63 as first opcode
  target-tricore: Add instructions of RRR1 opcode format, which have
    0xe3 as first opcode
  target-tricore: Add instructions of RRRR opcode format
  target-tricore: Add instructions of RRRW opcode format
  target-tricore: Add instructions of SYS opcode format

 target-tricore/cpu.h             |    7 +
 target-tricore/helper.h          |   12 +
 target-tricore/op_helper.c       |  436 +++
 target-tricore/translate.c       | 6765 +++++++++++++++++++++++---------------
 target-tricore/tricore-opcodes.h |   56 +-
 5 files changed, 4525 insertions(+), 2751 deletions(-)

-- 
2.3.0

             reply	other threads:[~2015-02-25 15:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 16:14 Bastian Koppelmann [this message]
2015-02-25 16:14 ` [Qemu-devel] [PATCH 1/6] target-tricore: Add instructions of RRR1 opcode format, which have 0xa3 as first opcode Bastian Koppelmann
2015-02-25 16:14 ` [Qemu-devel] [PATCH 2/6] target-tricore: Add instructions of RRR1 opcode format, which have 0x63 " Bastian Koppelmann
2015-02-25 16:14 ` [Qemu-devel] [PATCH 3/6] target-tricore: Add instructions of RRR1 opcode format, which have 0xe3 " Bastian Koppelmann
2015-02-25 16:14 ` [Qemu-devel] [PATCH 4/6] target-tricore: Add instructions of RRRR opcode format Bastian Koppelmann
2015-02-25 16:14 ` [Qemu-devel] [PATCH 5/6] target-tricore: Add instructions of RRRW " Bastian Koppelmann
2015-02-25 16:14 ` [Qemu-devel] [PATCH 6/6] target-tricore: Add instructions of SYS " Bastian Koppelmann
2015-03-05 13:25 ` [Qemu-devel] [PATCH 0/6] TriCore: add RRR1, RRRR, RRRW, SYS instructions Bastian Koppelmann
2015-03-13 20:41 ` Richard Henderson

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=1424880881-1594-1-git-send-email-kbastian@mail.uni-paderborn.de \
    --to=kbastian@mail.uni-paderborn.de \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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 NNTP newsgroup(s).