From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMUPD-0000zz-Bz for qemu-devel@nongnu.org; Mon, 12 Jan 2009 16:33:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMUPB-0000y7-Tl for qemu-devel@nongnu.org; Mon, 12 Jan 2009 16:33:06 -0500 Received: from [199.232.76.173] (port=55464 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMUPB-0000xv-PZ for qemu-devel@nongnu.org; Mon, 12 Jan 2009 16:33:05 -0500 Received: from savannah.gnu.org ([199.232.41.3]:47915 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LMUPB-0002tE-AS for qemu-devel@nongnu.org; Mon, 12 Jan 2009 16:33:05 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LMUPA-0003Dd-1M for qemu-devel@nongnu.org; Mon, 12 Jan 2009 21:33:04 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LMUP9-0003DV-8u for qemu-devel@nongnu.org; Mon, 12 Jan 2009 21:33:03 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Mon, 12 Jan 2009 21:33:03 +0000 Subject: [Qemu-devel] [6275] target-ppc: add altivec cache instructions Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6275 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6275 Author: aurel32 Date: 2009-01-12 21:33:02 +0000 (Mon, 12 Jan 2009) Log Message: ----------- target-ppc: add altivec cache instructions Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-ppc/translate.c Modified: trunk/target-ppc/translate.c =================================================================== --- trunk/target-ppc/translate.c 2009-01-12 21:12:22 UTC (rev 6274) +++ trunk/target-ppc/translate.c 2009-01-12 21:33:02 UTC (rev 6275) @@ -4152,6 +4152,33 @@ tcg_temp_free(t0); } +/* dst / dstt */ +GEN_HANDLER(dst, 0x1F, 0x16, 0x0A, 0x01800001, PPC_ALTIVEC) +{ + if (rA(ctx->opcode) == 0) { + gen_inval_exception(ctx, POWERPC_EXCP_INVAL_LSWX); + } else { + /* interpreted as no-op */ + } +} + +/* dstst /dststt */ +GEN_HANDLER(dstst, 0x1F, 0x16, 0x0B, 0x02000001, PPC_ALTIVEC) +{ + if (rA(ctx->opcode) == 0) { + gen_inval_exception(ctx, POWERPC_EXCP_INVAL_LSWX); + } else { + /* interpreted as no-op */ + } + +} + +/* dss / dssall */ +GEN_HANDLER(dss, 0x1F, 0x16, 0x19, 0x019FF801, PPC_ALTIVEC) +{ + /* interpreted as no-op */ +} + /* icbi */ GEN_HANDLER(icbi, 0x1F, 0x16, 0x1E, 0x03E00001, PPC_CACHE_ICBI) {