Revision b068d6a7 target-ppc/exec.h

b/target-ppc/exec.h
68 68
# define RETURN() __asm__ __volatile__("" : : : "memory");
69 69
#endif
70 70

  
71
static inline target_ulong rotl8 (target_ulong i, int n)
71
static always_inline target_ulong rotl8 (target_ulong i, int n)
72 72
{
73 73
    return (((uint8_t)i << n) | ((uint8_t)i >> (8 - n)));
74 74
}
75 75

  
76
static inline target_ulong rotl16 (target_ulong i, int n)
76
static always_inline target_ulong rotl16 (target_ulong i, int n)
77 77
{
78 78
    return (((uint16_t)i << n) | ((uint16_t)i >> (16 - n)));
79 79
}
80 80

  
81
static inline target_ulong rotl32 (target_ulong i, int n)
81
static always_inline target_ulong rotl32 (target_ulong i, int n)
82 82
{
83 83
    return (((uint32_t)i << n) | ((uint32_t)i >> (32 - n)));
84 84
}
85 85

  
86 86
#if defined(TARGET_PPC64)
87
static inline target_ulong rotl64 (target_ulong i, int n)
87
static always_inline target_ulong rotl64 (target_ulong i, int n)
88 88
{
89 89
    return (((uint64_t)i << n) | ((uint64_t)i >> (64 - n)));
90 90
}
......
103 103
void ppc6xx_tlb_store (CPUState *env, target_ulong EPN, int way, int is_code,
104 104
                       target_ulong pte0, target_ulong pte1);
105 105

  
106
static inline void env_to_regs (void)
106
static always_inline void env_to_regs (void)
107 107
{
108 108
}
109 109

  
110
static inline void regs_to_env (void)
110
static always_inline void regs_to_env (void)
111 111
{
112 112
}
113 113

  
114 114
int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
115 115
                              int is_user, int is_softmmu);
116 116

  
117
static inline int cpu_halted (CPUState *env)
117
static always_inline int cpu_halted (CPUState *env)
118 118
{
119 119
    if (!env->halted)
120 120
        return 0;

Also available in: Unified diff