From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmRCl-0003SM-Ds for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:51:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmRCk-0003Ro-SE for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:51:14 -0400 Received: from [199.232.76.173] (port=44526 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmRCk-0003Rh-Hw for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:51:14 -0400 Received: from savannah.gnu.org ([199.232.41.3]:46622 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 1KmRCk-0005XH-FV for qemu-devel@nongnu.org; Sun, 05 Oct 2008 06:51:14 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KmRCj-0001QV-1a for qemu-devel@nongnu.org; Sun, 05 Oct 2008 10:51:13 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KmRCh-0001QP-Vj for qemu-devel@nongnu.org; Sun, 05 Oct 2008 10:51:12 +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: Sun, 05 Oct 2008 10:51:11 +0000 Subject: [Qemu-devel] [5425] Make bitmask tables static 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: 5425 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5425 Author: blueswir1 Date: 2008-10-05 10:51:10 +0000 (Sun, 05 Oct 2008) Log Message: ----------- Make bitmask tables static const Modified Paths: -------------- trunk/linux-user/syscall.c trunk/thunk.c trunk/thunk.h Modified: trunk/linux-user/syscall.c =================================================================== --- trunk/linux-user/syscall.c 2008-10-05 10:49:32 UTC (rev 5424) +++ trunk/linux-user/syscall.c 2008-10-05 10:51:10 UTC (rev 5425) @@ -2230,7 +2230,7 @@ return ret; } -bitmask_transtbl iflag_tbl[] = { +static const bitmask_transtbl iflag_tbl[] = { { TARGET_IGNBRK, TARGET_IGNBRK, IGNBRK, IGNBRK }, { TARGET_BRKINT, TARGET_BRKINT, BRKINT, BRKINT }, { TARGET_IGNPAR, TARGET_IGNPAR, IGNPAR, IGNPAR }, @@ -2248,7 +2248,7 @@ { 0, 0, 0, 0 } }; -bitmask_transtbl oflag_tbl[] = { +static const bitmask_transtbl oflag_tbl[] = { { TARGET_OPOST, TARGET_OPOST, OPOST, OPOST }, { TARGET_OLCUC, TARGET_OLCUC, OLCUC, OLCUC }, { TARGET_ONLCR, TARGET_ONLCR, ONLCR, ONLCR }, @@ -2276,7 +2276,7 @@ { 0, 0, 0, 0 } }; -bitmask_transtbl cflag_tbl[] = { +static const bitmask_transtbl cflag_tbl[] = { { TARGET_CBAUD, TARGET_B0, CBAUD, B0 }, { TARGET_CBAUD, TARGET_B50, CBAUD, B50 }, { TARGET_CBAUD, TARGET_B75, CBAUD, B75 }, @@ -2311,7 +2311,7 @@ { 0, 0, 0, 0 } }; -bitmask_transtbl lflag_tbl[] = { +static const bitmask_transtbl lflag_tbl[] = { { TARGET_ISIG, TARGET_ISIG, ISIG, ISIG }, { TARGET_ICANON, TARGET_ICANON, ICANON, ICANON }, { TARGET_XCASE, TARGET_XCASE, XCASE, XCASE }, Modified: trunk/thunk.c =================================================================== --- trunk/thunk.c 2008-10-05 10:49:32 UTC (rev 5424) +++ trunk/thunk.c 2008-10-05 10:51:10 UTC (rev 5425) @@ -249,9 +249,9 @@ * between X86 and Alpha formats... */ unsigned int target_to_host_bitmask(unsigned int x86_mask, - bitmask_transtbl * trans_tbl) + const bitmask_transtbl * trans_tbl) { - bitmask_transtbl * btp; + const bitmask_transtbl *btp; unsigned int alpha_mask = 0; for(btp = trans_tbl; btp->x86_mask && btp->alpha_mask; btp++) { @@ -263,9 +263,9 @@ } unsigned int host_to_target_bitmask(unsigned int alpha_mask, - bitmask_transtbl * trans_tbl) + const bitmask_transtbl * trans_tbl) { - bitmask_transtbl * btp; + const bitmask_transtbl *btp; unsigned int x86_mask = 0; for(btp = trans_tbl; btp->x86_mask && btp->alpha_mask; btp++) { Modified: trunk/thunk.h =================================================================== --- trunk/thunk.h 2008-10-05 10:49:32 UTC (rev 5424) +++ trunk/thunk.h 2008-10-05 10:51:10 UTC (rev 5425) @@ -155,8 +155,8 @@ #endif /* NO_THUNK_TYPE_SIZE */ unsigned int target_to_host_bitmask(unsigned int x86_mask, - bitmask_transtbl * trans_tbl); + const bitmask_transtbl * trans_tbl); unsigned int host_to_target_bitmask(unsigned int alpha_mask, - bitmask_transtbl * trans_tbl); + const bitmask_transtbl * trans_tbl); #endif