From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnLSA-0002rx-JX for qemu-devel@nongnu.org; Tue, 07 Oct 2008 18:54:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnLS9-0002rL-Nf for qemu-devel@nongnu.org; Tue, 07 Oct 2008 18:54:53 -0400 Received: from [199.232.76.173] (port=45335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnLS9-0002rI-KW for qemu-devel@nongnu.org; Tue, 07 Oct 2008 18:54:53 -0400 Received: from savannah.gnu.org ([199.232.41.3]:35992 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 1KnLS9-0003wd-Db for qemu-devel@nongnu.org; Tue, 07 Oct 2008 18:54:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KnLS8-0006s0-Kz for qemu-devel@nongnu.org; Tue, 07 Oct 2008 22:54:52 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KnLS8-0006rw-Am for qemu-devel@nongnu.org; Tue, 07 Oct 2008 22:54:52 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Tue, 07 Oct 2008 22:54:52 +0000 Subject: [Qemu-devel] [5446] CRIS: Make local objects static. 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: 5446 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5446 Author: edgar_igl Date: 2008-10-07 22:54:52 +0000 (Tue, 07 Oct 2008) Log Message: ----------- CRIS: Make local objects static. Modified Paths: -------------- trunk/target-cris/translate.c Modified: trunk/target-cris/translate.c =================================================================== --- trunk/target-cris/translate.c 2008-10-07 22:48:41 UTC (rev 5445) +++ trunk/target-cris/translate.c 2008-10-07 22:54:52 UTC (rev 5446) @@ -61,21 +61,21 @@ #define CC_MASK_NZVC 0xf #define CC_MASK_RNZV 0x10e -TCGv cpu_env; -TCGv cpu_T[2]; -TCGv cpu_R[16]; -TCGv cpu_PR[16]; -TCGv cc_x; -TCGv cc_src; -TCGv cc_dest; -TCGv cc_result; -TCGv cc_op; -TCGv cc_size; -TCGv cc_mask; +static TCGv cpu_env; +static TCGv cpu_T[2]; +static TCGv cpu_R[16]; +static TCGv cpu_PR[16]; +static TCGv cc_x; +static TCGv cc_src; +static TCGv cc_dest; +static TCGv cc_result; +static TCGv cc_op; +static TCGv cc_size; +static TCGv cc_mask; -TCGv env_btaken; -TCGv env_btarget; -TCGv env_pc; +static TCGv env_btaken; +static TCGv env_btarget; +static TCGv env_pc; #include "gen-icount.h" @@ -130,14 +130,14 @@ cpu_abort(dc->env, "%s:%d\n", file, line); } -const char *regnames[] = +static const char *regnames[] = { "$r0", "$r1", "$r2", "$r3", "$r4", "$r5", "$r6", "$r7", "$r8", "$r9", "$r10", "$r11", "$r12", "$r13", "$sp", "$acr", }; -const char *pregnames[] = +static const char *pregnames[] = { "$bz", "$vr", "$pid", "$srs", "$wz", "$exs", "$eda", "$mof", @@ -146,7 +146,7 @@ }; /* We need this table to handle preg-moves with implicit width. */ -int preg_sizes[] = { +static int preg_sizes[] = { 1, /* bz. */ 1, /* vr. */ 4, /* pid. */ @@ -1203,8 +1203,8 @@ tcg_gen_movi_tl(env_btaken, 1); } -void gen_load(DisasContext *dc, TCGv dst, TCGv addr, - unsigned int size, int sign) +static void gen_load(DisasContext *dc, TCGv dst, TCGv addr, + unsigned int size, int sign) { int mem_index = cpu_mmu_index(dc->env); @@ -1233,8 +1233,8 @@ } } -void gen_store (DisasContext *dc, TCGv addr, TCGv val, - unsigned int size) +static void gen_store (DisasContext *dc, TCGv addr, TCGv val, + unsigned int size) { int mem_index = cpu_mmu_index(dc->env); @@ -1409,7 +1409,7 @@ #if DISAS_CRIS static const char *cc_name(int cc) { - static char *cc_names[16] = { + static const char *cc_names[16] = { "cc", "cs", "ne", "eq", "vc", "vs", "pl", "mi", "ls", "hi", "ge", "lt", "gt", "le", "a", "p" }; @@ -2854,7 +2854,7 @@ return 2; } -struct decoder_info { +static struct decoder_info { struct { uint32_t bits; uint32_t mask;