Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlStz-0007Zy-2a for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:27:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlSty-0007Xa-6A for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:27:50 -0400 Received: from [199.232.76.173] (port=40905 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlStx-0007XQ-Ux for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:27:50 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34934 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 1KlStx-0001VP-Jm for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:27:49 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KlStw-0006iR-Jf for qemu-devel@nongnu.org; Thu, 02 Oct 2008 18:27:48 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KlStv-0006hl-HV for qemu-devel@nongnu.org; Thu, 02 Oct 2008 18:27:48 +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: Thu, 02 Oct 2008 18:27:47 +0000 Subject: [Qemu-devel] [5397] Make CPULogItem tables const 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: 5397 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5397 Author: blueswir1 Date: 2008-10-02 18:27:46 +0000 (Thu, 02 Oct 2008) Log Message: ----------- Make CPULogItem tables const Modified Paths: -------------- trunk/cpu-all.h trunk/exec.c trunk/linux-user/main.c trunk/vl.c Modified: trunk/cpu-all.h =================================================================== --- trunk/cpu-all.h 2008-10-02 18:26:42 UTC (rev 5396) +++ trunk/cpu-all.h 2008-10-02 18:27:46 UTC (rev 5397) @@ -797,7 +797,7 @@ const char *help; } CPULogItem; -extern CPULogItem cpu_log_items[]; +extern const CPULogItem cpu_log_items[]; void cpu_set_log(int log_flags); void cpu_set_log_filename(const char *filename); Modified: trunk/exec.c =================================================================== --- trunk/exec.c 2008-10-02 18:26:42 UTC (rev 5396) +++ trunk/exec.c 2008-10-02 18:27:46 UTC (rev 5397) @@ -1511,7 +1511,7 @@ env->interrupt_request &= ~mask; } -CPULogItem cpu_log_items[] = { +const CPULogItem cpu_log_items[] = { { CPU_LOG_TB_OUT_ASM, "out_asm", "show generated host assembly code for each compiled TB" }, { CPU_LOG_TB_IN_ASM, "in_asm", @@ -1551,7 +1551,7 @@ /* takes a comma separated list of log masks. Return 0 if error. */ int cpu_str_to_log_mask(const char *str) { - CPULogItem *item; + const CPULogItem *item; int mask; const char *p, *p1; Modified: trunk/linux-user/main.c =================================================================== --- trunk/linux-user/main.c 2008-10-02 18:26:42 UTC (rev 5396) +++ trunk/linux-user/main.c 2008-10-02 18:27:46 UTC (rev 5397) @@ -2252,7 +2252,7 @@ break; } else if (!strcmp(r, "d")) { int mask; - CPULogItem *item; + const CPULogItem *item; if (optind >= argc) break; Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-10-02 18:26:42 UTC (rev 5396) +++ trunk/vl.c 2008-10-02 18:27:46 UTC (rev 5397) @@ -8845,7 +8845,7 @@ case QEMU_OPTION_d: { int mask; - CPULogItem *item; + const CPULogItem *item; mask = cpu_str_to_log_mask(optarg); if (!mask) {