aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/op_helper.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-28 00:55:05 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-28 00:55:05 +0000
commita11b8151dfc71f95ac04e5f73c7d5c042911b9e4 (patch)
tree65abfdb47f2a2a950e148bf5ce2a27cd99967ca5 /target-ppc/op_helper.c
parent5bda28432fc8d269821f8c05e062f7c847f20cac (diff)
PowerPC coding style and inlining fixes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3461 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r--target-ppc/op_helper.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c
index 346b29b7eb..61075c0866 100644
--- a/target-ppc/op_helper.c
+++ b/target-ppc/op_helper.c
@@ -474,7 +474,7 @@ void do_popcntb_64 (void)
/*****************************************************************************/
/* Floating point operations helpers */
-static inline int fpisneg (float64 f)
+static always_inline int fpisneg (float64 f)
{
union {
float64 f;
@@ -486,7 +486,7 @@ static inline int fpisneg (float64 f)
return u.u >> 63 != 0;
}
-static inline int isden (float f)
+static always_inline int isden (float f)
{
union {
float64 f;
@@ -498,7 +498,7 @@ static inline int isden (float f)
return ((u.u >> 52) & 0x7FF) == 0;
}
-static inline int iszero (float64 f)
+static always_inline int iszero (float64 f)
{
union {
float64 f;
@@ -510,7 +510,7 @@ static inline int iszero (float64 f)
return (u.u & ~0x8000000000000000ULL) == 0;
}
-static inline int isinfinity (float64 f)
+static always_inline int isinfinity (float64 f)
{
union {
float64 f;
@@ -661,7 +661,6 @@ static always_inline void float_zero_divide_excp (void)
float64 f;
uint64_t u;
} u0, u1;
-
env->fpscr |= 1 << FPSCR_ZX;
env->fpscr &= ~((1 << FPSCR_FR) | (1 << FPSCR_FI));
@@ -2825,12 +2824,12 @@ void do_load_74xx_tlb (int is_code)
way, is_code, CMP, RPN);
}
-static target_ulong booke_tlb_to_page_size (int size)
+static always_inline target_ulong booke_tlb_to_page_size (int size)
{
return 1024 << (2 * size);
}
-static int booke_page_size_to_tlb (target_ulong page_size)
+static always_inline int booke_page_size_to_tlb (target_ulong page_size)
{
int size;