From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr7kw-0001p8-3W for qemu-devel@nongnu.org; Fri, 04 Jan 2013 08:56:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tr7ks-0007RW-I4 for qemu-devel@nongnu.org; Fri, 04 Jan 2013 08:56:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:64312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr7ks-0007RL-BV for qemu-devel@nongnu.org; Fri, 04 Jan 2013 08:56:14 -0500 From: Stefan Hajnoczi Date: Fri, 4 Jan 2013 14:55:48 +0100 Message-Id: <1357307750-1966-5-git-send-email-stefanha@redhat.com> In-Reply-To: <1357307750-1966-1-git-send-email-stefanha@redhat.com> References: <1357307750-1966-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 4/6] hw/mcf5206: Reduce size of lookup table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil , Anthony Liguori , Stefan Hajnoczi From: Stefan Weil This typically reduces the size from 512 bytes to 128 bytes. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/mcf5206.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mcf5206.c b/hw/mcf5206.c index fe7a488..d8c0059 100644 --- a/hw/mcf5206.c +++ b/hw/mcf5206.c @@ -359,7 +359,7 @@ static void m5206_mbar_write(m5206_mbar_state *s, uint32_t offset, /* Internal peripherals use a variety of register widths. This lookup table allows a single routine to handle all of them. */ -static const int m5206_mbar_width[] = +static const uint8_t m5206_mbar_width[] = { /* 000-040 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, /* 040-080 */ 1, 2, 2, 2, 4, 1, 2, 4, 1, 2, 4, 2, 2, 4, 2, 2, -- 1.8.0.2