From patchwork Mon Jun 28 15:54:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cmchao X-Patchwork-Id: 57155 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 43316B6EEC for ; Tue, 29 Jun 2010 01:55:35 +1000 (EST) Received: from localhost ([127.0.0.1]:37486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTGgG-0005Vk-1V for incoming@patchwork.ozlabs.org; Mon, 28 Jun 2010 11:55:32 -0400 Received: from [140.186.70.92] (port=60331 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTGfE-0005TN-87 for qemu-devel@nongnu.org; Mon, 28 Jun 2010 11:54:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTGfC-0006Lu-Pv for qemu-devel@nongnu.org; Mon, 28 Jun 2010 11:54:28 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:62821) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTGfC-0006Le-JN for qemu-devel@nongnu.org; Mon, 28 Jun 2010 11:54:26 -0400 Received: by pvg12 with SMTP id 12so2619141pvg.4 for ; Mon, 28 Jun 2010 08:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:x-mailer:in-reply-to:references; bh=q/P5YaJnwyT1s1FasMW8z0gX5ZKqaZrz1OYu0vCSUFk=; b=NAShozCN5Hj3j4hVoN+1bmsbGV8xU5RrNVNV7QugJAQu3mWiyk/ZI9UvQu/KJtKICH qiDDSKYV7+ET0ZI5AxGynm3pfl//8RTUbfOWbZxztXtXgT589EcpzCovOQUczPo/F1xm 5uW/gZOb+s1PM/zQLiu6UA6RgQVu36TjZqtBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; b=lyV+mj1CT7r0zm3ht8Y0Y7k8Yh9XpBb+Nwt356V4DBMhuCxWIUU/Nu9NABy5S7ltWA SaXaf0LEGx2hRgBHIgvPY3IXMNP+2vYm3rz1fMc4n1I0VXf/cp1IiEhXaGi5xFxhO4F+ T17u8r/UVUdagO5tfylAa5qHHB2AmQlmZs8ks= Received: by 10.142.247.16 with SMTP id u16mr5915832wfh.217.1277740464801; Mon, 28 Jun 2010 08:54:24 -0700 (PDT) Received: from localhost.localdomain (114-44-99-42.dynamic.hinet.net [114.44.99.42]) by mx.google.com with ESMTPS id g14sm3641092rvb.18.2010.06.28.08.54.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 08:54:23 -0700 (PDT) From: Chih-Min Chao To: qemu-devel@nongnu.org Date: Mon, 28 Jun 2010 23:54:04 +0800 Message-Id: <1277740446-8603-2-git-send-email-cmchao@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1277740446-8603-1-git-send-email-cmchao@gmail.com> References: <1277740446-8603-1-git-send-email-cmchao@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 1/3] target-arm: fix addsub/subadd implementation 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 Signed-off-by: Chih-Min Chao --- target-arm/op_addsub.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-arm/op_addsub.h b/target-arm/op_addsub.h index 29f77ba..c02c92a 100644 --- a/target-arm/op_addsub.h +++ b/target-arm/op_addsub.h @@ -73,8 +73,8 @@ uint32_t HELPER(glue(PFX,subaddx))(uint32_t a, uint32_t b GE_ARG) uint32_t res = 0; DECLARE_GE; - ADD16(a, b, 0); - SUB16(a >> 16, b >> 16, 1); + ADD16(a, b >> 16, 0); + SUB16(a >> 16, b, 1); SET_GE; return res; } @@ -84,8 +84,8 @@ uint32_t HELPER(glue(PFX,addsubx))(uint32_t a, uint32_t b GE_ARG) uint32_t res = 0; DECLARE_GE; - SUB16(a, b, 0); - ADD16(a >> 16, b >> 16, 1); + SUB16(a, b >> 16, 0); + ADD16(a >> 16, b, 1); SET_GE; return res; }