Revision aa343735 target-mips/op_helper.c
b/target-mips/op_helper.c | ||
---|---|---|
146 | 146 |
|
147 | 147 |
/* 64 bits arithmetic for 32 bits hosts */ |
148 | 148 |
#if TARGET_LONG_BITS > HOST_LONG_BITS |
149 |
static inline uint64_t get_HILO (void) |
|
149 |
static always_inline uint64_t get_HILO (void)
|
|
150 | 150 |
{ |
151 | 151 |
return (env->HI[0][env->current_tc] << 32) | (uint32_t)env->LO[0][env->current_tc]; |
152 | 152 |
} |
153 | 153 |
|
154 |
static inline void set_HILO (uint64_t HILO) |
|
154 |
static always_inline void set_HILO (uint64_t HILO)
|
|
155 | 155 |
{ |
156 | 156 |
env->LO[0][env->current_tc] = (int32_t)HILO; |
157 | 157 |
env->HI[0][env->current_tc] = (int32_t)(HILO >> 32); |
... | ... | |
673 | 673 |
do_raise_exception(EXCP_FPE); |
674 | 674 |
} |
675 | 675 |
|
676 |
inline char ieee_ex_to_mips(char xcpt) |
|
676 |
static always_inline char ieee_ex_to_mips(char xcpt)
|
|
677 | 677 |
{ |
678 | 678 |
return (xcpt & float_flag_inexact) >> 5 | |
679 | 679 |
(xcpt & float_flag_underflow) >> 3 | |
... | ... | |
682 | 682 |
(xcpt & float_flag_invalid) << 4; |
683 | 683 |
} |
684 | 684 |
|
685 |
inline char mips_ex_to_ieee(char xcpt) |
|
685 |
static always_inline char mips_ex_to_ieee(char xcpt)
|
|
686 | 686 |
{ |
687 | 687 |
return (xcpt & FP_INEXACT) << 5 | |
688 | 688 |
(xcpt & FP_UNDERFLOW) << 3 | |
... | ... | |
691 | 691 |
(xcpt & FP_INVALID) >> 4; |
692 | 692 |
} |
693 | 693 |
|
694 |
inline void update_fcr31(void) |
|
694 |
static always_inline void update_fcr31(void)
|
|
695 | 695 |
{ |
696 | 696 |
int tmp = ieee_ex_to_mips(get_float_exception_flags(&env->fpu->fp_status)); |
697 | 697 |
|
Also available in: Unified diff