qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] SH: Add prefi, icbi, synco
Date: Fri, 17 Oct 2008 16:52:46 +0400	[thread overview]
Message-ID: <200810171652.46611.vladimir@codesourcery.com> (raw)


This patch makes qemu recognize (and ignore), three instructions from SH4A.
First if prefetch (prefi). QEMU does not model cache, and the instruction is
documented to never cause TLB miss. Second is icbi, which invalidates cache
block, and again, no cache is simulated. Last is synco, which is memory barrier,
but qemu does not reorder memory operations anyway, I think.

- Volodya

	* target-sh4/translate.c (_decode_opc): Handle
	prefi, icbi, and synco.
---
 target-sh4/translate.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 0eeb294..bf86329 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -1552,6 +1552,12 @@ void _decode_opc(DisasContext * ctx)
 	return;
     case 0x0083:		/* pref @Rn */
 	return;
+    case 0x00d3:		/* prefi @Rn */
+	return;
+    case 0x00e3:		/* icbi @Rn */
+	return;
+    case 0x00ab:		/* synco */
+	return;
     case 0x4024:		/* rotcl Rn */
 	{
 	    TCGv tmp = tcg_temp_new(TCG_TYPE_I32);
-- 
1.5.3.5

             reply	other threads:[~2008-10-17 12:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 12:52 Vladimir Prus [this message]
2008-10-17 19:56 ` [Qemu-devel] [PATCH] SH: Add prefi, icbi, synco Paul Brook
2008-10-20  4:01   ` Paul Mundt
2008-10-20 10:54     ` Paul Brook
2008-10-20 13:00       ` Paul Mundt
2008-10-20 16:27         ` Paul Brook
2008-10-20 16:31           ` Vladimir Prus
2008-10-20 16:46             ` Paul Brook
2008-10-20 16:49             ` Paul Mundt
2008-10-20 17:07               ` Paul Brook
2008-10-20 17:15       ` Laurent Desnogues
2008-10-20 17:19         ` Paul Brook

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=200810171652.46611.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    /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).