diff options
author | Igor V. Kovalenko <igor.v.kovalenko@gmail.com> | 2010-01-07 23:27:54 +0300 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-01-08 17:12:09 +0000 |
commit | d780a466db5d6d82c0f0eba7adf0e4de601324b0 (patch) | |
tree | 2ac06b98f92b9e63b95e9b23192301a53f598720 /target-sparc/op_helper.c | |
parent | 52001445c9d9e9191c1d9b2f887cd9ae265f0799 (diff) | |
download | qemu-d780a466db5d6d82c0f0eba7adf0e4de601324b0.tar.gz qemu-d780a466db5d6d82c0f0eba7adf0e4de601324b0.tar.bz2 qemu-d780a466db5d6d82c0f0eba7adf0e4de601324b0.zip |
sparc64: change_pstate should have 32bit argument
- 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>
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r-- | 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 c63de0717b..fd3286db7b 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) { |