Received: from eggs.gnu.org ([208.118.235.92]:52314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmOfq-0002Ho-Pp for qemu-devel@nongnu.org; Sat, 22 Dec 2012 07:59:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmOfm-0003QU-EB for qemu-devel@nongnu.org; Sat, 22 Dec 2012 07:59:30 -0500 From: Stefan Weil Date: Sat, 22 Dec 2012 13:59:22 +0100 Message-Id: <1356181162-20825-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] hw/mcf5206: Reduce size of lookup table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org Cc: Stefan Weil , qemu-devel@nongnu.org This typically reduces the size from 512 bytes to 128 bytes. Signed-off-by: Stefan Weil --- 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.7.10.4