From patchwork Thu Jan 7 20:27:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor V. Kovalenko" X-Patchwork-Id: 42470 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 C15781007D3 for ; Fri, 8 Jan 2010 07:30:57 +1100 (EST) Received: from localhost ([127.0.0.1]:56156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSz0Q-0007Cm-9c for incoming@patchwork.ozlabs.org; Thu, 07 Jan 2010 15:30:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSyxg-0004P5-KS for qemu-devel@nongnu.org; Thu, 07 Jan 2010 15:28:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSyxb-0004Gm-CQ for qemu-devel@nongnu.org; Thu, 07 Jan 2010 15:28:03 -0500 Received: from [199.232.76.173] (port=38261 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSyxb-0004GT-6y for qemu-devel@nongnu.org; Thu, 07 Jan 2010 15:27:59 -0500 Received: from mail-fx0-f222.google.com ([209.85.220.222]:33820) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSyxa-0000ti-Lc for qemu-devel@nongnu.org; Thu, 07 Jan 2010 15:27:59 -0500 Received: by mail-fx0-f222.google.com with SMTP id 22so21243905fxm.2 for ; Thu, 07 Jan 2010 12:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:subject:to:from:date :message-id:in-reply-to:references:user-agent:mime-version :content-type:content-transfer-encoding; bh=M85nfH4wdW/ovuQSTV4IN48FhtAX+I6NuJtx79xcRcU=; b=V1ZBbl2LJ1/A7X/7JpX3J/ZPiI56+WPMSvgTpNKrYEE7q0j2tbQDOJsp1kHVzQeROA HP4X0JPdp0APqIl3GwahyiVk82dpj1PZcP4xmzYQQAdBhHadKNFNjWRMcL7+7q5yxKnE cAm9Dm1oUGfyXc/2bQGV15nx6vsGhovDA4/Ys= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:to:from:date:message-id:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding; b=Jh3eU04FZMFVyRhHvVxCHHxLv4p/I87tf3jRwR5fMxeebaZGcnOP5c4gku+3E3QyNQ nN7udAsjnUaSwdwx1lO9aRIqYMD5JMKYlimhSJKOA3dK5PwAuvUvlsDyAdqgvaAZqwxJ UHxwunuvbKXWfXyaCqK5aN+m5eryl3z1wFbbA= Received: by 10.223.81.82 with SMTP id w18mr17005342fak.70.1262896075862; Thu, 07 Jan 2010 12:27:55 -0800 (PST) Received: from skyserv (host-87-255-14-75.bigtelecom.ru [87.255.14.75]) by mx.google.com with ESMTPS id 13sm7900413fxm.1.2010.01.07.12.27.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Jan 2010 12:27:55 -0800 (PST) Received: from localhost ([127.0.0.1] helo=[192.168.1.2]) by skyserv with esmtp (Exim 4.71) (envelope-from ) id 1NSyxW-0004P9-Ku for qemu-devel@nongnu.org; Thu, 07 Jan 2010 23:27:54 +0300 To: qemu-devel@nongnu.org From: "Igor V. Kovalenko" Date: Thu, 07 Jan 2010 23:27:54 +0300 Message-ID: <20100107202754.16653.98778.stgit@skyserv> In-Reply-To: <20100107201810.16653.85771.stgit@skyserv> References: <20100107201810.16653.85771.stgit@skyserv> User-Agent: StGit/0.15 MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 1/9] sparc64: change_pstate should have 32bit argument 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 From: Igor V. Kovalenko - pstate is 32bit variable, no need to pass 64bit value around Signed-off-by: Igor V. Kovalenko --- target-sparc/op_helper.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index c63de07..fd3286d 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -3240,7 +3240,7 @@ target_ulong helper_popc(target_ulong val) return ctpop64(val); } -static inline uint64_t *get_gregset(uint64_t pstate) +static inline uint64_t *get_gregset(uint32_t pstate) { switch (pstate) { default: @@ -3255,9 +3255,9 @@ static inline uint64_t *get_gregset(uint64_t pstate) } } -static inline void change_pstate(uint64_t new_pstate) +static inline void change_pstate(uint32_t new_pstate) { - uint64_t pstate_regs, new_pstate_regs; + uint32_t pstate_regs, new_pstate_regs; uint64_t *src, *dst; if (env->def->features & CPU_FEATURE_GL) {