From patchwork Mon Jul 12 05:05:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Courbot X-Patchwork-Id: 58572 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6D8B5B6F44 for ; Mon, 12 Jul 2010 15:08:43 +1000 (EST) Received: from localhost ([127.0.0.1]:55085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYBFw-0002gy-BY for incoming@patchwork.ozlabs.org; Mon, 12 Jul 2010 01:08:40 -0400 Received: from [140.186.70.92] (port=42266 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYBBH-0000A4-8V for qemu-devel@nongnu.org; Mon, 12 Jul 2010 01:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYBBF-0005Vs-Ks for qemu-devel@nongnu.org; Mon, 12 Jul 2010 01:03:50 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:56479) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYBBF-0005Ul-ES for qemu-devel@nongnu.org; Mon, 12 Jul 2010 01:03:49 -0400 Received: by mail-pz0-f45.google.com with SMTP id 10so1133156pzk.4 for ; Sun, 11 Jul 2010 22:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=uv83poJixMPG7JpM8sh17Wl4EdSTBRIMiJGCdtYrSjA=; b=hFQbhdZEJB7OZw4Xpw5zz0wH/7XlP5BpoYB+oGkKf/v+B7IGVES/r6S3BGRYb4uk4x 7A/beWq2yepZuD7TmcLOCTWbSWmw+Z1yYvCXsXo4fD/Mjmf40/xtMh2lNWixU+C+skvT eiYQY/6d0jWzgs5gcRElnlICfycOfbFKttULU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=pd2YsQ+E9NRPuhQ3sUxbqpoDDcOsDac2eWNUzQEMD0uu4S4HiEYxr0FjJfYV6jeJ80 SeyQd++Up0JdOvhJWnFwUUfsPGJNakCnDrDsI9FmfcBnxbleK6jpZlXI3EYiSCmaiXrc DfLmIqiUolLu2iQbZDeITEL0VluSNd5tqxrqA= Received: by 10.142.204.17 with SMTP id b17mr5758977wfg.4.1278911029089; Sun, 11 Jul 2010 22:03:49 -0700 (PDT) Received: from localhost.localdomain (fw-cisco.dcl.info.waseda.ac.jp [133.9.216.204]) by mx.google.com with ESMTPS id w8sm4390585wfd.19.2010.07.11.22.03.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Jul 2010 22:03:48 -0700 (PDT) From: Alexandre Courbot To: qemu-devel@nongnu.org Date: Mon, 12 Jul 2010 14:05:32 +0900 Message-Id: <1278911132-7828-3-git-send-email-gnurou@gmail.com> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: <1278911132-7828-1-git-send-email-gnurou@gmail.com> References: <1278911132-7828-1-git-send-email-gnurou@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Alexandre Courbot Subject: [Qemu-devel] [PATCH v2 2/2] target-sh4: Add support for ldc & stc with sgr X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add support for the following missing priviledged intructions: For SH4: - stc sgr, Rn - stc.l sgr, @-Rn For SH4A: - ldc Rm, sgr - ldc.l @Rm+, sgr Signed-off-by: Alexandre Courbot --- target-sh4/translate.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 3abafd0..deee939 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1543,6 +1543,8 @@ static void _decode_opc(DisasContext * ctx) LDST(vbr, 0x402e, 0x4027, 0x0022, 0x4023, CHECK_PRIVILEGED) LDST(ssr, 0x403e, 0x4037, 0x0032, 0x4033, CHECK_PRIVILEGED) LDST(spc, 0x404e, 0x4047, 0x0042, 0x4043, CHECK_PRIVILEGED) + ST(sgr, 0x003a, 0x4032, CHECK_PRIVILEGED) + LD(sgr, 0x403a, 0x4036, CHECK_PRIVILEGED if (!(ctx->features & SH_FEATURE_SH4A)) break;) LDST(dbr, 0x40fa, 0x40f6, 0x00fa, 0x40f2, CHECK_PRIVILEGED) LDST(mach, 0x400a, 0x4006, 0x000a, 0x4002, {}) LDST(macl, 0x401a, 0x4016, 0x001a, 0x4012, {})