qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] SH: Add prefi, icbi, synco
@ 2008-10-17 12:52 Vladimir Prus
  2008-10-17 19:56 ` Paul Brook
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Prus @ 2008-10-17 12:52 UTC (permalink / raw)
  To: qemu-devel


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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-10-20 17:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17 12:52 [Qemu-devel] [PATCH] SH: Add prefi, icbi, synco Vladimir Prus
2008-10-17 19:56 ` 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

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).