Commit f8a6ec58177851b4f99bde73324376c09b566e33

Authored by ths
1 parent b991c385

Build fix for gcc-3.3.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5139 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 0 deletions
target-mips/translate_init.c
@@ -439,6 +439,7 @@ void mips_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) @@ -439,6 +439,7 @@ void mips_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
439 } 439 }
440 } 440 }
441 441
  442 +#ifndef CONFIG_USER_ONLY
442 static void no_mmu_init (CPUMIPSState *env, const mips_def_t *def) 443 static void no_mmu_init (CPUMIPSState *env, const mips_def_t *def)
443 { 444 {
444 env->tlb->nb_tlb = 1; 445 env->tlb->nb_tlb = 1;
@@ -484,6 +485,7 @@ static void mmu_init (CPUMIPSState *env, const mips_def_t *def) @@ -484,6 +485,7 @@ static void mmu_init (CPUMIPSState *env, const mips_def_t *def)
484 env->CP0_Random = env->tlb->nb_tlb - 1; 485 env->CP0_Random = env->tlb->nb_tlb - 1;
485 env->tlb->tlb_in_use = env->tlb->nb_tlb; 486 env->tlb->tlb_in_use = env->tlb->nb_tlb;
486 } 487 }
  488 +#endif /* CONFIG_USER_ONLY */
487 489
488 static void fpu_init (CPUMIPSState *env, const mips_def_t *def) 490 static void fpu_init (CPUMIPSState *env, const mips_def_t *def)
489 { 491 {
@@ -566,8 +568,10 @@ static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def) @@ -566,8 +568,10 @@ static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def)
566 env->CP0_SRSConf4 = def->CP0_SRSConf4; 568 env->CP0_SRSConf4 = def->CP0_SRSConf4;
567 env->insn_flags = def->insn_flags; 569 env->insn_flags = def->insn_flags;
568 570
  571 +#ifndef CONFIG_USER_ONLY
569 if (!env->user_mode_only) 572 if (!env->user_mode_only)
570 mmu_init(env, def); 573 mmu_init(env, def);
  574 +#endif
571 fpu_init(env, def); 575 fpu_init(env, def);
572 mvp_init(env, def); 576 mvp_init(env, def);
573 return 0; 577 return 0;