From patchwork Thu Jan 7 20:27:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/9] sparc64: change_pstate should have 32bit argument Date: Thu, 07 Jan 2010 10:27:54 -0000 From: "Igor V. Kovalenko" X-Patchwork-Id: 42470 Message-Id: <20100107202754.16653.98778.stgit@skyserv> 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) {