sparc64: change_pstate should have 32bit argument
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Thu, 7 Jan 2010 20:27:54 +0000 (23:27 +0300)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 8 Jan 2010 17:12:09 +0000 (17:12 +0000)
- pstate is 32bit variable, no need to pass 64bit value around

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/op_helper.c

index c63de0717b6786a7900721d649bd0af3950919d5..fd3286db7b0ec81dcdd7d57473c6db4f3a829af5 100644 (file)
@@ -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) {