Skip to contentSkip to conversation

[5139] Build fix for gcc-3.3.

Qemu-devel Thiemo Seufer 1 participant 1 message Sep 2, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5139

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5139
Author:   ths
Date:     2008-09-02 17:39:45 +0000 (Tue, 02 Sep 2008)

Log Message:
-----------
Build fix for gcc-3.3.

Modified Paths:
--------------
trunk/target-mips/translate_init.c

Modified: trunk/target-mips/translate_init.c
===================================================================

target-mips/translate_init.c +4 -0
@@ -439,6 +439,7 @@
     }
 }
 
+#ifndef CONFIG_USER_ONLY
 static void no_mmu_init (CPUMIPSState *env, const mips_def_t *def)
 {
     env->tlb->nb_tlb = 1;
@@ -484,6 +485,7 @@
     env->CP0_Random = env->tlb->nb_tlb - 1;
     env->tlb->tlb_in_use = env->tlb->nb_tlb;
 }
+#endif /* CONFIG_USER_ONLY */
 
 static void fpu_init (CPUMIPSState *env, const mips_def_t *def)
 {
@@ -566,8 +568,10 @@
     env->CP0_SRSConf4 = def->CP0_SRSConf4;
     env->insn_flags = def->insn_flags;
 
+#ifndef CONFIG_USER_ONLY
     if (!env->user_mode_only)
         mmu_init(env, def);
+#endif
     fpu_init(env, def);
     mvp_init(env, def);
     return 0;