提交 d780a466 编写于 作者: I Igor V. Kovalenko 提交者: Blue Swirl

sparc64: change_pstate should have 32bit argument

- pstate is 32bit variable, no need to pass 64bit value around
Signed-off-by: NIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 52001445
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册