From: Blue Swirl Date: Sun, 20 Dec 2009 10:27:44 +0000 (+0000) Subject: alpha: fix compile X-Git-Tag: v0.12.2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eacdccbb3e79deb04056bd2096ec9f679b6761ae;p=thirdparty%2Fqemu.git alpha: fix compile Signed-off-by: Blue Swirl --- diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index fe222dccd95..7a3bf9c0f4c 100644 --- a/target-alpha/op_helper.c +++ b/target-alpha/op_helper.c @@ -46,10 +46,10 @@ uint64_t helper_load_fpcr (void) { uint64_t ret = 0; #ifdef CONFIG_SOFTFLOAT - ret |= env->fp_status.float_exception_flags << 52; + ret |= (uint64_t)env->fp_status.float_exception_flags << 52; if (env->fp_status.float_exception_flags) ret |= 1ULL << 63; - env->ipr[IPR_EXC_SUM] &= ~0x3E: + env->ipr[IPR_EXC_SUM] &= ~0x3E; env->ipr[IPR_EXC_SUM] |= env->fp_status.float_exception_flags << 1; #endif switch (env->fp_status.float_rounding_mode) {