From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl6CN-00007Y-Eg for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:13:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl6CL-0008WB-4z for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:13:17 -0400 Received: from [199.232.76.173] (port=34917 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl6CK-0008Vz-0R for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:13:16 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34040 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 1Kl6CJ-0007pb-Uv for qemu-devel@nongnu.org; Wed, 01 Oct 2008 14:13:16 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kl6CI-0000gO-Sk for qemu-devel@nongnu.org; Wed, 01 Oct 2008 18:13:14 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kl6CI-0000g7-H5 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 18:13:14 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Wed, 01 Oct 2008 18:13:14 +0000 Subject: [Qemu-devel] [5375] Change some qualifiers to 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: 5375 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5375 Author: blueswir1 Date: 2008-10-01 18:13:13 +0000 (Wed, 01 Oct 2008) Log Message: ----------- Change some qualifiers to static Modified Paths: -------------- trunk/sparc-dis.c Modified: trunk/sparc-dis.c =================================================================== --- trunk/sparc-dis.c 2008-10-01 18:08:41 UTC (rev 5374) +++ trunk/sparc-dis.c 2008-10-01 18:13:13 UTC (rev 5375) @@ -67,7 +67,7 @@ short supported; }; -extern const struct sparc_opcode_arch sparc_opcode_archs[]; +static const struct sparc_opcode_arch sparc_opcode_archs[]; /* Return the bitmask of supported architectures for ARCH. */ #define SPARC_OPCODE_SUPPORTED(ARCH) (sparc_opcode_archs[ARCH].supported) @@ -212,13 +212,14 @@ #define RS1_G0 RS1(~0) #define RS2_G0 RS2(~0) -extern const struct sparc_opcode sparc_opcodes[]; -extern const int sparc_num_opcodes; +static const struct sparc_opcode sparc_opcodes[]; +static const int sparc_num_opcodes; -extern const char *sparc_decode_asi PARAMS ((int)); -extern const char *sparc_decode_membar PARAMS ((int)); -extern const char *sparc_decode_prefetch PARAMS ((int)); -extern const char *sparc_decode_sparclet_cpreg PARAMS ((int)); +static const char *sparc_decode_asi_v8 PARAMS ((int)); +static const char *sparc_decode_asi_v9 PARAMS ((int)); +static const char *sparc_decode_membar PARAMS ((int)); +static const char *sparc_decode_prefetch PARAMS ((int)); +static const char *sparc_decode_sparclet_cpreg PARAMS ((int)); /* Some defines to make life easy. */ #define MASK_V6 SPARC_OPCODE_ARCH_MASK (SPARC_OPCODE_ARCH_V6) @@ -262,7 +263,7 @@ /* Table of opcode architectures. The order is defined in opcode/sparc.h. */ -const struct sparc_opcode_arch sparc_opcode_archs[] = { +static const struct sparc_opcode_arch sparc_opcode_archs[] = { { "v6", MASK_V6 }, { "v7", MASK_V6 | MASK_V7 }, { "v8", MASK_V6 | MASK_V7 | MASK_V8 }, @@ -349,7 +350,7 @@ { opcode, F3(2, op3, 1), F3(~2, ~op3, ~1), "1,i,d", 0, arch_mask }, \ { opcode, F3(2, op3, 1), F3(~2, ~op3, ~1), "i,1,d", 0, arch_mask } -const struct sparc_opcode sparc_opcodes[] = { +static const struct sparc_opcode sparc_opcodes[] = { { "ld", F3(3, 0x00, 0), F3(~3, ~0x00, ~0), "[1+2],d", 0, v6 }, { "ld", F3(3, 0x00, 0), F3(~3, ~0x00, ~0)|RS2_G0, "[1],d", 0, v6 }, /* ld [rs1+%g0],d */ @@ -2030,7 +2031,7 @@ }; -const int sparc_num_opcodes = ((sizeof sparc_opcodes)/(sizeof sparc_opcodes[0])); +static const int sparc_num_opcodes = ((sizeof sparc_opcodes)/(sizeof sparc_opcodes[0])); /* Utilities for argument parsing. */