Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaZr4-0008Ka-2S for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:39:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaZr2-0008Je-FS for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:39:49 -0400 Received: from [199.232.76.173] (port=36546 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaZr2-0008JZ-Ax for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:39:48 -0400 Received: from savannah.gnu.org ([199.232.41.3]:49804 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaZr1-0006FG-W9 for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:39:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KaZr0-0003cr-Tg for qemu-devel@nongnu.org; Tue, 02 Sep 2008 17:39:47 +0000 Received: from ths by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KaZr0-0003ci-LZ for qemu-devel@nongnu.org; Tue, 02 Sep 2008 17:39:46 +0000 MIME-Version: 1.0 Errors-To: ths Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Thiemo Seufer Message-Id: Date: Tue, 02 Sep 2008 17:39:46 +0000 Subject: [Qemu-devel] [5139] Build fix for gcc-3.3. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 =================================================================== --- trunk/target-mips/translate_init.c 2008-09-02 16:33:23 UTC (rev 5138) +++ trunk/target-mips/translate_init.c 2008-09-02 17:39:45 UTC (rev 5139) @@ -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;