projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c242222
)
hw/mcf5206: Reduce size of lookup table
author
Stefan Weil
<sw@weilnetz.de>
Sat, 22 Dec 2012 12:59:22 +0000
(13:59 +0100)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 4 Jan 2013 13:38:05 +0000
(14:38 +0100)
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>
hw/mcf5206.c
patch
|
blob
|
history
diff --git
a/hw/mcf5206.c
b/hw/mcf5206.c
index fe7a48864fa8b5be325ad8040c5bf43aa4b63e2a..d8c0059ed62c1c3166c44da4560c5e3b83cd841c 100644
(file)
--- 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
in
t 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,