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) 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 1/9] sparc64: change_pstate should have 32bit argument List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@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) {