From patchwork Fri Mar 12 11:38:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: TeLeMan X-Patchwork-Id: 47670 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 41825B7D42 for ; Fri, 12 Mar 2010 22:41:27 +1100 (EST) Received: from localhost ([127.0.0.1]:60884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nq3Eb-00041R-EH for incoming@patchwork.ozlabs.org; Fri, 12 Mar 2010 06:40:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nq3By-0002xB-9f for qemu-devel@nongnu.org; Fri, 12 Mar 2010 06:38:10 -0500 Received: from [199.232.76.173] (port=43498 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nq3Bx-0002wX-Dr for qemu-devel@nongnu.org; Fri, 12 Mar 2010 06:38:09 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nq3Bw-00070c-NL for qemu-devel@nongnu.org; Fri, 12 Mar 2010 06:38:09 -0500 Received: from mail-px0-f176.google.com ([209.85.216.176]:46051) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nq3Bw-00070S-Dp for qemu-devel@nongnu.org; Fri, 12 Mar 2010 06:38:08 -0500 Received: by pxi6 with SMTP id 6so438372pxi.18 for ; Fri, 12 Mar 2010 03:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=RjQkTmDVunYF34/fx3o2ZxQgWV2S9NDiHvwcNzzJIR4=; b=D/sAE9MVh2ByaAqLMFU3pLcT+sNmSwPWgZDNfRdHISsWJ9cxYrrsSqHf/8Z/YRcwFy isORxDfuwelHvOKTjW4b9zroRr8X5KgvJEwD+rej7v60rVszZVng8Nv5TSyewK2vsEsh 0Yu1XTzNNTe87yEnBZVa7gM4TtnqvbPe15oYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=K4SxgDWLSYTU+U1w0/jJzj75xGPMlFAhLV+0GXU51p/d7hCZS5Zq2uUcO70nMgnl0h 2m+OCuCxSq8expmN+mZEJ86CWmhK/ysPqi7IbDaSwYj+DNLptlB+fI01hWZdRkanfZPL a/yfP7MjTGh7vCsdb39dYg/Y3avToF8MXWdhI= MIME-Version: 1.0 Received: by 10.140.55.14 with SMTP id d14mr2822584rva.149.1268393886817; Fri, 12 Mar 2010 03:38:06 -0800 (PST) Date: Fri, 12 Mar 2010 19:38:06 +0800 Message-ID: From: TeLeMan To: qemu-devel X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] target-i386: fix commit c22549204a6edc431e8e4358e61bd56386ff6957 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 The commit c22549204a6edc431e8e4358e61bd56386ff6957 led movntps & movntdq to be translated incorrectly. Signed-off-by: TeLeMan --- target-i386/translate.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) goto illegal_op; diff --git a/target-i386/translate.c b/target-i386/translate.c index 6838d53..07b0a70 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -3457,6 +3457,11 @@ static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r) case 0x1e7: /* movntdq */ case 0x02b: /* movntps */ case 0x12b: /* movntps */ + if (mod == 3) + goto illegal_op; + gen_lea_modrm(s, modrm, ®_addr, &offset_addr); + gen_sto_env_A0(s->mem_index, offsetof(CPUX86State,xmm_regs[reg])); + break; case 0x3f0: /* lddqu */ if (mod == 3)