aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-12-22 13:59:22 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-01-04 14:38:05 +0100
commit715857cbbabc8740792b608f9bc4cd9fad6ecb1d (patch)
tree27501ddb955acce8325b0a9c5f6588f75b6c2d88
parentc242222c978d2c09411f2560915708c364ca2ce9 (diff)
downloadqemu-715857cbbabc8740792b608f9bc4cd9fad6ecb1d.zip
qemu-715857cbbabc8740792b608f9bc4cd9fad6ecb1d.tar.gz
qemu-715857cbbabc8740792b608f9bc4cd9fad6ecb1d.tar.bz2
hw/mcf5206: Reduce size of lookup table
This typically reduces the size from 512 bytes to 128 bytes. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--hw/mcf5206.c2
1 files changed, 1 insertions, 1 deletions
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,