Commit f071b4d3ca5e83d332948a970a646437747b70ba

Authored by j_mayer
1 parent a11b8151

Alpha coding style and inlining fixes.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3462 c046a42c-6fe2-441c-8c8c-71466251a162
target-alpha/cpu.h
@@ -27,14 +27,13 @@ @@ -27,14 +27,13 @@
27 27
28 #include "cpu-defs.h" 28 #include "cpu-defs.h"
29 29
30 -  
31 #include <setjmp.h> 30 #include <setjmp.h>
32 31
33 #include "softfloat.h" 32 #include "softfloat.h"
34 33
35 #define TARGET_HAS_ICE 1 34 #define TARGET_HAS_ICE 1
36 35
37 -#define ELF_MACHINE EM_ALPHA 36 +#define ELF_MACHINE EM_ALPHA
38 37
39 #define ICACHE_LINE_SIZE 32 38 #define ICACHE_LINE_SIZE 32
40 #define DCACHE_LINE_SIZE 32 39 #define DCACHE_LINE_SIZE 32
target-alpha/exec.h
@@ -64,11 +64,11 @@ register uint64_t T2 asm(AREG3); @@ -64,11 +64,11 @@ register uint64_t T2 asm(AREG3);
64 #include "softmmu_exec.h" 64 #include "softmmu_exec.h"
65 #endif /* !defined(CONFIG_USER_ONLY) */ 65 #endif /* !defined(CONFIG_USER_ONLY) */
66 66
67 -static inline void env_to_regs(void) 67 +static always_inline void env_to_regs(void)
68 { 68 {
69 } 69 }
70 70
71 -static inline void regs_to_env(void) 71 +static always_inline void regs_to_env(void)
72 { 72 {
73 } 73 }
74 74
@@ -79,7 +79,7 @@ int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t *oldvalp); @@ -79,7 +79,7 @@ int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t *oldvalp);
79 79
80 void do_interrupt (CPUState *env); 80 void do_interrupt (CPUState *env);
81 81
82 -static inline int cpu_halted(CPUState *env) { 82 +static always_inline int cpu_halted(CPUState *env) {
83 if (!env->halted) 83 if (!env->halted)
84 return 0; 84 return 0;
85 if (env->interrupt_request & CPU_INTERRUPT_HARD) { 85 if (env->interrupt_request & CPU_INTERRUPT_HARD) {
target-alpha/op_helper.c
@@ -294,7 +294,7 @@ void helper_cttz (void) @@ -294,7 +294,7 @@ void helper_cttz (void)
294 T0 = n; 294 T0 = n;
295 } 295 }
296 296
297 -static inline uint64_t byte_zap (uint64_t op, uint8_t mskb) 297 +static always_inline uint64_t byte_zap (uint64_t op, uint8_t mskb)
298 { 298 {
299 uint64_t mask; 299 uint64_t mask;
300 300
@@ -609,7 +609,7 @@ void helper_ftoit (void) @@ -609,7 +609,7 @@ void helper_ftoit (void)
609 FT0 = p.d; 609 FT0 = p.d;
610 } 610 }
611 611
612 -static int vaxf_is_valid (float ff) 612 +static always_inline int vaxf_is_valid (float ff)
613 { 613 {
614 union { 614 union {
615 float f; 615 float f;
@@ -628,7 +628,7 @@ static int vaxf_is_valid (float ff) @@ -628,7 +628,7 @@ static int vaxf_is_valid (float ff)
628 return 1; 628 return 1;
629 } 629 }
630 630
631 -static float vaxf_to_ieee32 (float ff) 631 +static always_inline float vaxf_to_ieee32 (float ff)
632 { 632 {
633 union { 633 union {
634 float f; 634 float f;
@@ -648,7 +648,7 @@ static float vaxf_to_ieee32 (float ff) @@ -648,7 +648,7 @@ static float vaxf_to_ieee32 (float ff)
648 return p.f; 648 return p.f;
649 } 649 }
650 650
651 -static float ieee32_to_vaxf (float fi) 651 +static always_inline float ieee32_to_vaxf (float fi)
652 { 652 {
653 union { 653 union {
654 float f; 654 float f;
@@ -751,7 +751,7 @@ void helper_itoff (void) @@ -751,7 +751,7 @@ void helper_itoff (void)
751 /* XXX: TODO */ 751 /* XXX: TODO */
752 } 752 }
753 753
754 -static int vaxg_is_valid (double ff) 754 +static always_inline int vaxg_is_valid (double ff)
755 { 755 {
756 union { 756 union {
757 double f; 757 double f;
@@ -770,7 +770,7 @@ static int vaxg_is_valid (double ff) @@ -770,7 +770,7 @@ static int vaxg_is_valid (double ff)
770 return 1; 770 return 1;
771 } 771 }
772 772
773 -static double vaxg_to_ieee64 (double fg) 773 +static always_inline double vaxg_to_ieee64 (double fg)
774 { 774 {
775 union { 775 union {
776 double f; 776 double f;
@@ -790,7 +790,7 @@ static double vaxg_to_ieee64 (double fg) @@ -790,7 +790,7 @@ static double vaxg_to_ieee64 (double fg)
790 return p.f; 790 return p.f;
791 } 791 }
792 792
793 -static double ieee64_to_vaxg (double fi) 793 +static always_inline double ieee64_to_vaxg (double fi)
794 { 794 {
795 union { 795 union {
796 double f; 796 double f;
@@ -1044,7 +1044,7 @@ void helper_cvtlq (void) @@ -1044,7 +1044,7 @@ void helper_cvtlq (void)
1044 FT0 = q.d; 1044 FT0 = q.d;
1045 } 1045 }
1046 1046
1047 -static inline void __helper_cvtql (int s, int v) 1047 +static always_inline void __helper_cvtql (int s, int v)
1048 { 1048 {
1049 union { 1049 union {
1050 double d; 1050 double d;
target-alpha/op_mem.h
@@ -26,21 +26,22 @@ void helper_print_mem_EA (target_ulong EA); @@ -26,21 +26,22 @@ void helper_print_mem_EA (target_ulong EA);
26 #define print_mem_EA(EA) do { } while (0) 26 #define print_mem_EA(EA) do { } while (0)
27 #endif 27 #endif
28 28
29 -static inline uint32_t glue(ldl_l, MEMSUFFIX) (target_ulong EA) 29 +static always_inline uint32_t glue(ldl_l, MEMSUFFIX) (target_ulong EA)
30 { 30 {
31 env->lock = EA; 31 env->lock = EA;
32 32
33 return glue(ldl, MEMSUFFIX)(EA); 33 return glue(ldl, MEMSUFFIX)(EA);
34 } 34 }
35 35
36 -static inline uint32_t glue(ldq_l, MEMSUFFIX) (target_ulong EA) 36 +static always_inline uint32_t glue(ldq_l, MEMSUFFIX) (target_ulong EA)
37 { 37 {
38 env->lock = EA; 38 env->lock = EA;
39 39
40 return glue(ldq, MEMSUFFIX)(EA); 40 return glue(ldq, MEMSUFFIX)(EA);
41 } 41 }
42 42
43 -static inline void glue(stl_c, MEMSUFFIX) (target_ulong EA, uint32_t data) 43 +static always_inline void glue(stl_c, MEMSUFFIX) (target_ulong EA,
  44 + uint32_t data)
44 { 45 {
45 if (EA == env->lock) { 46 if (EA == env->lock) {
46 glue(stl, MEMSUFFIX)(EA, data); 47 glue(stl, MEMSUFFIX)(EA, data);
@@ -51,7 +52,8 @@ static inline void glue(stl_c, MEMSUFFIX) (target_ulong EA, uint32_t data) @@ -51,7 +52,8 @@ static inline void glue(stl_c, MEMSUFFIX) (target_ulong EA, uint32_t data)
51 env->lock = -1; 52 env->lock = -1;
52 } 53 }
53 54
54 -static inline void glue(stq_c, MEMSUFFIX) (target_ulong EA, uint64_t data) 55 +static always_inline void glue(stq_c, MEMSUFFIX) (target_ulong EA,
  56 + uint64_t data)
55 { 57 {
56 if (EA == env->lock) { 58 if (EA == env->lock) {
57 glue(stq, MEMSUFFIX)(EA, data); 59 glue(stq, MEMSUFFIX)(EA, data);
target-alpha/translate.c
@@ -59,7 +59,7 @@ static uint32_t *gen_opparam_ptr; @@ -59,7 +59,7 @@ static uint32_t *gen_opparam_ptr;
59 59
60 #include "gen-op.h" 60 #include "gen-op.h"
61 61
62 -static inline void gen_op_nop (void) 62 +static always_inline void gen_op_nop (void)
63 { 63 {
64 #if defined(GENERATE_NOP) 64 #if defined(GENERATE_NOP)
65 gen_op_no_op(); 65 gen_op_no_op();
@@ -77,7 +77,7 @@ NAME ## 20, NAME ## 21, NAME ## 22, NAME ## 23, \ @@ -77,7 +77,7 @@ NAME ## 20, NAME ## 21, NAME ## 22, NAME ## 23, \
77 NAME ## 24, NAME ## 25, NAME ## 26, NAME ## 27, \ 77 NAME ## 24, NAME ## 25, NAME ## 26, NAME ## 27, \
78 NAME ## 28, NAME ## 29, NAME ## 30, NAME ## 31, \ 78 NAME ## 28, NAME ## 29, NAME ## 30, NAME ## 31, \
79 }; \ 79 }; \
80 -static inline void func(int n) \ 80 +static always_inline void func (int n) \
81 { \ 81 { \
82 NAME ## _table[n](); \ 82 NAME ## _table[n](); \
83 } 83 }
@@ -99,7 +99,7 @@ GEN32(gen_op_store_T1_ir, gen_op_store_T1_ir); @@ -99,7 +99,7 @@ GEN32(gen_op_store_T1_ir, gen_op_store_T1_ir);
99 GEN32(gen_op_store_T2_ir, gen_op_store_T2_ir); 99 GEN32(gen_op_store_T2_ir, gen_op_store_T2_ir);
100 GEN32(gen_op_cmov_ir, gen_op_cmov_ir); 100 GEN32(gen_op_cmov_ir, gen_op_cmov_ir);
101 101
102 -static inline void gen_load_ir (DisasContext *ctx, int irn, int Tn) 102 +static always_inline void gen_load_ir (DisasContext *ctx, int irn, int Tn)
103 { 103 {
104 switch (Tn) { 104 switch (Tn) {
105 case 0: 105 case 0:
@@ -114,7 +114,7 @@ static inline void gen_load_ir (DisasContext *ctx, int irn, int Tn) @@ -114,7 +114,7 @@ static inline void gen_load_ir (DisasContext *ctx, int irn, int Tn)
114 } 114 }
115 } 115 }
116 116
117 -static inline void gen_store_ir (DisasContext *ctx, int irn, int Tn) 117 +static always_inline void gen_store_ir (DisasContext *ctx, int irn, int Tn)
118 { 118 {
119 switch (Tn) { 119 switch (Tn) {
120 case 0: 120 case 0:
@@ -146,7 +146,7 @@ GEN32(gen_op_store_FT1_fir, gen_op_store_FT1_fir); @@ -146,7 +146,7 @@ GEN32(gen_op_store_FT1_fir, gen_op_store_FT1_fir);
146 GEN32(gen_op_store_FT2_fir, gen_op_store_FT2_fir); 146 GEN32(gen_op_store_FT2_fir, gen_op_store_FT2_fir);
147 GEN32(gen_op_cmov_fir, gen_op_cmov_fir); 147 GEN32(gen_op_cmov_fir, gen_op_cmov_fir);
148 148
149 -static inline void gen_load_fir (DisasContext *ctx, int firn, int Tn) 149 +static always_inline void gen_load_fir (DisasContext *ctx, int firn, int Tn)
150 { 150 {
151 switch (Tn) { 151 switch (Tn) {
152 case 0: 152 case 0:
@@ -161,7 +161,7 @@ static inline void gen_load_fir (DisasContext *ctx, int firn, int Tn) @@ -161,7 +161,7 @@ static inline void gen_load_fir (DisasContext *ctx, int firn, int Tn)
161 } 161 }
162 } 162 }
163 163
164 -static inline void gen_store_fir (DisasContext *ctx, int firn, int Tn) 164 +static always_inline void gen_store_fir (DisasContext *ctx, int firn, int Tn)
165 { 165 {
166 switch (Tn) { 166 switch (Tn) {
167 case 0: 167 case 0:
@@ -205,14 +205,14 @@ static GenOpFunc *gen_op_st##width[] = { \ @@ -205,14 +205,14 @@ static GenOpFunc *gen_op_st##width[] = { \
205 205
206 #define GEN_LD(width) \ 206 #define GEN_LD(width) \
207 OP_LD_TABLE(width); \ 207 OP_LD_TABLE(width); \
208 -static void gen_ld##width (DisasContext *ctx) \ 208 +static always_inline void gen_ld##width (DisasContext *ctx) \
209 { \ 209 { \
210 (*gen_op_ld##width[ctx->mem_idx])(); \ 210 (*gen_op_ld##width[ctx->mem_idx])(); \
211 } 211 }
212 212
213 #define GEN_ST(width) \ 213 #define GEN_ST(width) \
214 OP_ST_TABLE(width); \ 214 OP_ST_TABLE(width); \
215 -static void gen_st##width (DisasContext *ctx) \ 215 +static always_inline void gen_st##width (DisasContext *ctx) \
216 { \ 216 { \
217 (*gen_op_st##width[ctx->mem_idx])(); \ 217 (*gen_op_st##width[ctx->mem_idx])(); \
218 } 218 }
@@ -244,28 +244,28 @@ GEN_LD(t); @@ -244,28 +244,28 @@ GEN_LD(t);
244 GEN_ST(t); 244 GEN_ST(t);
245 245
246 #if defined(__i386__) || defined(__x86_64__) 246 #if defined(__i386__) || defined(__x86_64__)
247 -static inline void gen_op_set_s16_T0 (int16_t imm) 247 +static always_inline void gen_op_set_s16_T0 (int16_t imm)
248 { 248 {
249 gen_op_set_s32_T0((int32_t)imm); 249 gen_op_set_s32_T0((int32_t)imm);
250 } 250 }
251 251
252 -static inline void gen_op_set_s16_T1 (int16_t imm) 252 +static always_inline void gen_op_set_s16_T1 (int16_t imm)
253 { 253 {
254 gen_op_set_s32_T1((int32_t)imm); 254 gen_op_set_s32_T1((int32_t)imm);
255 } 255 }
256 256
257 -static inline void gen_op_set_u16_T0 (uint16_t imm) 257 +static always_inline void gen_op_set_u16_T0 (uint16_t imm)
258 { 258 {
259 gen_op_set_s32_T0((uint32_t)imm); 259 gen_op_set_s32_T0((uint32_t)imm);
260 } 260 }
261 261
262 -static inline void gen_op_set_u16_T1 (uint16_t imm) 262 +static always_inline void gen_op_set_u16_T1 (uint16_t imm)
263 { 263 {
264 gen_op_set_s32_T1((uint32_t)imm); 264 gen_op_set_s32_T1((uint32_t)imm);
265 } 265 }
266 #endif 266 #endif
267 267
268 -static inline void gen_set_sT0 (DisasContext *ctx, int64_t imm) 268 +static always_inline void gen_set_sT0 (DisasContext *ctx, int64_t imm)
269 { 269 {
270 int32_t imm32; 270 int32_t imm32;
271 int16_t imm16; 271 int16_t imm16;
@@ -291,7 +291,7 @@ static inline void gen_set_sT0 (DisasContext *ctx, int64_t imm) @@ -291,7 +291,7 @@ static inline void gen_set_sT0 (DisasContext *ctx, int64_t imm)
291 } 291 }
292 } 292 }
293 293
294 -static inline void gen_set_sT1 (DisasContext *ctx, int64_t imm) 294 +static always_inline void gen_set_sT1 (DisasContext *ctx, int64_t imm)
295 { 295 {
296 int32_t imm32; 296 int32_t imm32;
297 int16_t imm16; 297 int16_t imm16;
@@ -317,7 +317,7 @@ static inline void gen_set_sT1 (DisasContext *ctx, int64_t imm) @@ -317,7 +317,7 @@ static inline void gen_set_sT1 (DisasContext *ctx, int64_t imm)
317 } 317 }
318 } 318 }
319 319
320 -static inline void gen_set_uT0 (DisasContext *ctx, uint64_t imm) 320 +static always_inline void gen_set_uT0 (DisasContext *ctx, uint64_t imm)
321 { 321 {
322 if (!(imm >> 32)) { 322 if (!(imm >> 32)) {
323 if ((!imm >> 16)) { 323 if ((!imm >> 16)) {
@@ -337,7 +337,7 @@ static inline void gen_set_uT0 (DisasContext *ctx, uint64_t imm) @@ -337,7 +337,7 @@ static inline void gen_set_uT0 (DisasContext *ctx, uint64_t imm)
337 } 337 }
338 } 338 }
339 339
340 -static inline void gen_set_uT1 (DisasContext *ctx, uint64_t imm) 340 +static always_inline void gen_set_uT1 (DisasContext *ctx, uint64_t imm)
341 { 341 {
342 if (!(imm >> 32)) { 342 if (!(imm >> 32)) {
343 if ((!imm >> 16)) { 343 if ((!imm >> 16)) {
@@ -357,7 +357,7 @@ static inline void gen_set_uT1 (DisasContext *ctx, uint64_t imm) @@ -357,7 +357,7 @@ static inline void gen_set_uT1 (DisasContext *ctx, uint64_t imm)
357 } 357 }
358 } 358 }
359 359
360 -static inline void gen_update_pc (DisasContext *ctx) 360 +static always_inline void gen_update_pc (DisasContext *ctx)
361 { 361 {
362 if (!(ctx->pc >> 32)) { 362 if (!(ctx->pc >> 32)) {
363 gen_op_update_pc32(ctx->pc); 363 gen_op_update_pc32(ctx->pc);
@@ -370,7 +370,7 @@ static inline void gen_update_pc (DisasContext *ctx) @@ -370,7 +370,7 @@ static inline void gen_update_pc (DisasContext *ctx)
370 } 370 }
371 } 371 }
372 372
373 -static inline void _gen_op_bcond (DisasContext *ctx) 373 +static always_inline void _gen_op_bcond (DisasContext *ctx)
374 { 374 {
375 #if 0 // Qemu does not know how to do this... 375 #if 0 // Qemu does not know how to do this...
376 gen_op_bcond(ctx->pc); 376 gen_op_bcond(ctx->pc);
@@ -379,20 +379,22 @@ static inline void _gen_op_bcond (DisasContext *ctx) @@ -379,20 +379,22 @@ static inline void _gen_op_bcond (DisasContext *ctx)
379 #endif 379 #endif
380 } 380 }
381 381
382 -static inline void gen_excp (DisasContext *ctx, int exception, int error_code) 382 +static always_inline void gen_excp (DisasContext *ctx,
  383 + int exception, int error_code)
383 { 384 {
384 gen_update_pc(ctx); 385 gen_update_pc(ctx);
385 gen_op_excp(exception, error_code); 386 gen_op_excp(exception, error_code);
386 } 387 }
387 388
388 -static inline void gen_invalid (DisasContext *ctx) 389 +static always_inline void gen_invalid (DisasContext *ctx)
389 { 390 {
390 gen_excp(ctx, EXCP_OPCDEC, 0); 391 gen_excp(ctx, EXCP_OPCDEC, 0);
391 } 392 }
392 393
393 -static void gen_load_mem (DisasContext *ctx,  
394 - void (*gen_load_op)(DisasContext *ctx),  
395 - int ra, int rb, int32_t disp16, int clear) 394 +static always_inline void gen_load_mem (DisasContext *ctx,
  395 + void (*gen_load_op)(DisasContext *ctx),
  396 + int ra, int rb, int32_t disp16,
  397 + int clear)
396 { 398 {
397 if (ra == 31 && disp16 == 0) { 399 if (ra == 31 && disp16 == 0) {
398 /* UNOP */ 400 /* UNOP */
@@ -410,9 +412,10 @@ static void gen_load_mem (DisasContext *ctx, @@ -410,9 +412,10 @@ static void gen_load_mem (DisasContext *ctx,
410 } 412 }
411 } 413 }
412 414
413 -static void gen_store_mem (DisasContext *ctx,  
414 - void (*gen_store_op)(DisasContext *ctx),  
415 - int ra, int rb, int32_t disp16, int clear) 415 +static always_inline void gen_store_mem (DisasContext *ctx,
  416 + void (*gen_store_op)(DisasContext *ctx),
  417 + int ra, int rb, int32_t disp16,
  418 + int clear)
416 { 419 {
417 gen_load_ir(ctx, rb, 0); 420 gen_load_ir(ctx, rb, 0);
418 if (disp16 != 0) { 421 if (disp16 != 0) {
@@ -425,9 +428,9 @@ static void gen_store_mem (DisasContext *ctx, @@ -425,9 +428,9 @@ static void gen_store_mem (DisasContext *ctx,
425 (*gen_store_op)(ctx); 428 (*gen_store_op)(ctx);
426 } 429 }
427 430
428 -static void gen_load_fmem (DisasContext *ctx,  
429 - void (*gen_load_fop)(DisasContext *ctx),  
430 - int ra, int rb, int32_t disp16) 431 +static always_inline void gen_load_fmem (DisasContext *ctx,
  432 + void (*gen_load_fop)(DisasContext *ctx),
  433 + int ra, int rb, int32_t disp16)
431 { 434 {
432 gen_load_ir(ctx, rb, 0); 435 gen_load_ir(ctx, rb, 0);
433 if (disp16 != 0) { 436 if (disp16 != 0) {
@@ -438,9 +441,9 @@ static void gen_load_fmem (DisasContext *ctx, @@ -438,9 +441,9 @@ static void gen_load_fmem (DisasContext *ctx,
438 gen_store_fir(ctx, ra, 1); 441 gen_store_fir(ctx, ra, 1);
439 } 442 }
440 443
441 -static void gen_store_fmem (DisasContext *ctx,  
442 - void (*gen_store_fop)(DisasContext *ctx),  
443 - int ra, int rb, int32_t disp16) 444 +static always_inline void gen_store_fmem (DisasContext *ctx,
  445 + void (*gen_store_fop)(DisasContext *ctx),
  446 + int ra, int rb, int32_t disp16)
444 { 447 {
445 gen_load_ir(ctx, rb, 0); 448 gen_load_ir(ctx, rb, 0);
446 if (disp16 != 0) { 449 if (disp16 != 0) {
@@ -451,8 +454,9 @@ static void gen_store_fmem (DisasContext *ctx, @@ -451,8 +454,9 @@ static void gen_store_fmem (DisasContext *ctx,
451 (*gen_store_fop)(ctx); 454 (*gen_store_fop)(ctx);
452 } 455 }
453 456
454 -static void gen_bcond (DisasContext *ctx, void (*gen_test_op)(void),  
455 - int ra, int32_t disp16) 457 +static always_inline void gen_bcond (DisasContext *ctx,
  458 + void (*gen_test_op)(void),
  459 + int ra, int32_t disp16)
456 { 460 {
457 if (disp16 != 0) { 461 if (disp16 != 0) {
458 gen_set_uT0(ctx, ctx->pc); 462 gen_set_uT0(ctx, ctx->pc);
@@ -466,8 +470,9 @@ static void gen_bcond (DisasContext *ctx, void (*gen_test_op)(void), @@ -466,8 +470,9 @@ static void gen_bcond (DisasContext *ctx, void (*gen_test_op)(void),
466 _gen_op_bcond(ctx); 470 _gen_op_bcond(ctx);
467 } 471 }
468 472
469 -static void gen_fbcond (DisasContext *ctx, void (*gen_test_op)(void),  
470 - int ra, int32_t disp16) 473 +static always_inline void gen_fbcond (DisasContext *ctx,
  474 + void (*gen_test_op)(void),
  475 + int ra, int32_t disp16)
471 { 476 {
472 if (disp16 != 0) { 477 if (disp16 != 0) {
473 gen_set_uT0(ctx, ctx->pc); 478 gen_set_uT0(ctx, ctx->pc);
@@ -481,8 +486,9 @@ static void gen_fbcond (DisasContext *ctx, void (*gen_test_op)(void), @@ -481,8 +486,9 @@ static void gen_fbcond (DisasContext *ctx, void (*gen_test_op)(void),
481 _gen_op_bcond(ctx); 486 _gen_op_bcond(ctx);
482 } 487 }
483 488
484 -static void gen_arith2 (DisasContext *ctx, void (*gen_arith_op)(void),  
485 - int rb, int rc, int islit, int8_t lit) 489 +static always_inline void gen_arith2 (DisasContext *ctx,
  490 + void (*gen_arith_op)(void),
  491 + int rb, int rc, int islit, int8_t lit)
486 { 492 {
487 if (islit) 493 if (islit)
488 gen_set_sT0(ctx, lit); 494 gen_set_sT0(ctx, lit);
@@ -492,8 +498,10 @@ static void gen_arith2 (DisasContext *ctx, void (*gen_arith_op)(void), @@ -492,8 +498,10 @@ static void gen_arith2 (DisasContext *ctx, void (*gen_arith_op)(void),
492 gen_store_ir(ctx, rc, 0); 498 gen_store_ir(ctx, rc, 0);
493 } 499 }
494 500
495 -static void gen_arith3 (DisasContext *ctx, void (*gen_arith_op)(void),  
496 - int ra, int rb, int rc, int islit, int8_t lit) 501 +static always_inline void gen_arith3 (DisasContext *ctx,
  502 + void (*gen_arith_op)(void),
  503 + int ra, int rb, int rc,
  504 + int islit, int8_t lit)
497 { 505 {
498 gen_load_ir(ctx, ra, 0); 506 gen_load_ir(ctx, ra, 0);
499 if (islit) 507 if (islit)
@@ -504,8 +512,10 @@ static void gen_arith3 (DisasContext *ctx, void (*gen_arith_op)(void), @@ -504,8 +512,10 @@ static void gen_arith3 (DisasContext *ctx, void (*gen_arith_op)(void),
504 gen_store_ir(ctx, rc, 0); 512 gen_store_ir(ctx, rc, 0);
505 } 513 }
506 514
507 -static void gen_cmov (DisasContext *ctx, void (*gen_test_op)(void),  
508 - int ra, int rb, int rc, int islit, int8_t lit) 515 +static always_inline void gen_cmov (DisasContext *ctx,
  516 + void (*gen_test_op)(void),
  517 + int ra, int rb, int rc,
  518 + int islit, int8_t lit)
509 { 519 {
510 gen_load_ir(ctx, ra, 1); 520 gen_load_ir(ctx, ra, 1);
511 if (islit) 521 if (islit)
@@ -516,16 +526,18 @@ static void gen_cmov (DisasContext *ctx, void (*gen_test_op)(void), @@ -516,16 +526,18 @@ static void gen_cmov (DisasContext *ctx, void (*gen_test_op)(void),
516 gen_op_cmov_ir(rc); 526 gen_op_cmov_ir(rc);
517 } 527 }
518 528
519 -static void gen_farith2 (DisasContext *ctx, void (*gen_arith_fop)(void),  
520 - int rb, int rc) 529 +static always_inline void gen_farith2 (DisasContext *ctx,
  530 + void (*gen_arith_fop)(void),
  531 + int rb, int rc)
521 { 532 {
522 gen_load_fir(ctx, rb, 0); 533 gen_load_fir(ctx, rb, 0);
523 (*gen_arith_fop)(); 534 (*gen_arith_fop)();
524 gen_store_fir(ctx, rc, 0); 535 gen_store_fir(ctx, rc, 0);
525 } 536 }
526 537
527 -static void gen_farith3 (DisasContext *ctx, void (*gen_arith_fop)(void),  
528 - int ra, int rb, int rc) 538 +static always_inline void gen_farith3 (DisasContext *ctx,
  539 + void (*gen_arith_fop)(void),
  540 + int ra, int rb, int rc)
529 { 541 {
530 gen_load_fir(ctx, ra, 0); 542 gen_load_fir(ctx, ra, 0);
531 gen_load_fir(ctx, rb, 1); 543 gen_load_fir(ctx, rb, 1);
@@ -533,8 +545,9 @@ static void gen_farith3 (DisasContext *ctx, void (*gen_arith_fop)(void), @@ -533,8 +545,9 @@ static void gen_farith3 (DisasContext *ctx, void (*gen_arith_fop)(void),
533 gen_store_fir(ctx, rc, 0); 545 gen_store_fir(ctx, rc, 0);
534 } 546 }
535 547
536 -static void gen_fcmov (DisasContext *ctx, void (*gen_test_fop)(void),  
537 - int ra, int rb, int rc) 548 +static always_inline void gen_fcmov (DisasContext *ctx,
  549 + void (*gen_test_fop)(void),
  550 + int ra, int rb, int rc)
538 { 551 {
539 gen_load_fir(ctx, ra, 0); 552 gen_load_fir(ctx, ra, 0);
540 gen_load_fir(ctx, rb, 1); 553 gen_load_fir(ctx, rb, 1);
@@ -542,77 +555,79 @@ static void gen_fcmov (DisasContext *ctx, void (*gen_test_fop)(void), @@ -542,77 +555,79 @@ static void gen_fcmov (DisasContext *ctx, void (*gen_test_fop)(void),
542 gen_op_cmov_fir(rc); 555 gen_op_cmov_fir(rc);
543 } 556 }
544 557
545 -static void gen_fti (DisasContext *ctx, void (*gen_move_fop)(void),  
546 - int ra, int rc) 558 +static always_inline void gen_fti (DisasContext *ctx,
  559 + void (*gen_move_fop)(void),
  560 + int ra, int rc)
547 { 561 {
548 gen_load_fir(ctx, rc, 0); 562 gen_load_fir(ctx, rc, 0);
549 (*gen_move_fop)(); 563 (*gen_move_fop)();
550 gen_store_ir(ctx, ra, 0); 564 gen_store_ir(ctx, ra, 0);
551 } 565 }
552 566
553 -static void gen_itf (DisasContext *ctx, void (*gen_move_fop)(void),  
554 - int ra, int rc) 567 +static always_inline void gen_itf (DisasContext *ctx,
  568 + void (*gen_move_fop)(void),
  569 + int ra, int rc)
555 { 570 {
556 gen_load_ir(ctx, ra, 0); 571 gen_load_ir(ctx, ra, 0);
557 (*gen_move_fop)(); 572 (*gen_move_fop)();
558 gen_store_fir(ctx, rc, 0); 573 gen_store_fir(ctx, rc, 0);
559 } 574 }
560 575
561 -static void gen_s4addl (void) 576 +static always_inline void gen_s4addl (void)
562 { 577 {
563 gen_op_s4(); 578 gen_op_s4();
564 gen_op_addl(); 579 gen_op_addl();
565 } 580 }
566 581
567 -static void gen_s4subl (void) 582 +static always_inline void gen_s4subl (void)
568 { 583 {
569 gen_op_s4(); 584 gen_op_s4();
570 gen_op_subl(); 585 gen_op_subl();
571 } 586 }
572 587
573 -static void gen_s8addl (void) 588 +static always_inline void gen_s8addl (void)
574 { 589 {
575 gen_op_s8(); 590 gen_op_s8();
576 gen_op_addl(); 591 gen_op_addl();
577 } 592 }
578 593
579 -static void gen_s8subl (void) 594 +static always_inline void gen_s8subl (void)
580 { 595 {
581 gen_op_s8(); 596 gen_op_s8();
582 gen_op_subl(); 597 gen_op_subl();
583 } 598 }
584 599
585 -static void gen_s4addq (void) 600 +static always_inline void gen_s4addq (void)
586 { 601 {
587 gen_op_s4(); 602 gen_op_s4();
588 gen_op_addq(); 603 gen_op_addq();
589 } 604 }
590 605
591 -static void gen_s4subq (void) 606 +static always_inline void gen_s4subq (void)
592 { 607 {
593 gen_op_s4(); 608 gen_op_s4();
594 gen_op_subq(); 609 gen_op_subq();
595 } 610 }
596 611
597 -static void gen_s8addq (void) 612 +static always_inline void gen_s8addq (void)
598 { 613 {
599 gen_op_s8(); 614 gen_op_s8();
600 gen_op_addq(); 615 gen_op_addq();
601 } 616 }
602 617
603 -static void gen_s8subq (void) 618 +static always_inline void gen_s8subq (void)
604 { 619 {
605 gen_op_s8(); 620 gen_op_s8();
606 gen_op_subq(); 621 gen_op_subq();
607 } 622 }
608 623
609 -static void gen_amask (void) 624 +static always_inline void gen_amask (void)
610 { 625 {
611 gen_op_load_amask(); 626 gen_op_load_amask();
612 gen_op_bic(); 627 gen_op_bic();
613 } 628 }
614 629
615 -static int translate_one (DisasContext *ctx, uint32_t insn) 630 +static always_inline int translate_one (DisasContext *ctx, uint32_t insn)
616 { 631 {
617 uint32_t palcode; 632 uint32_t palcode;
618 int32_t disp21, disp16, disp12; 633 int32_t disp21, disp16, disp12;
@@ -1958,8 +1973,9 @@ static int translate_one (DisasContext *ctx, uint32_t insn) @@ -1958,8 +1973,9 @@ static int translate_one (DisasContext *ctx, uint32_t insn)
1958 return ret; 1973 return ret;
1959 } 1974 }
1960 1975
1961 -int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,  
1962 - int search_pc) 1976 +static always_inline int gen_intermediate_code_internal (CPUState *env,
  1977 + TranslationBlock *tb,
  1978 + int search_pc)
1963 { 1979 {
1964 #if defined ALPHA_DEBUG_DISAS 1980 #if defined ALPHA_DEBUG_DISAS
1965 static int insn_count; 1981 static int insn_count;