diff options
author | blueswir1 | 2008-01-01 18:06:38 +0100 |
---|---|---|
committer | blueswir1 | 2008-01-01 18:06:38 +0100 |
commit | 7c560456707bfe53eb1728fcde759be7d9418b62 (patch) | |
tree | f0faa190268d9b42e6a25758c36ac8c5e7380d1f /hw/slavio_misc.c | |
parent | DVMA translation errors raise a module error irq (NMI) (diff) | |
download | qemu-7c560456707bfe53eb1728fcde759be7d9418b62.tar.gz qemu-7c560456707bfe53eb1728fcde759be7d9418b62.tar.xz qemu-7c560456707bfe53eb1728fcde759be7d9418b62.zip |
Register only valid register access widths
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3881 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/slavio_misc.c')
-rw-r--r-- | hw/slavio_misc.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 9728bcad91..c54e00aa05 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -191,14 +191,14 @@ static uint32_t slavio_misc_mem_readb(void *opaque, target_phys_addr_t addr) static CPUReadMemoryFunc *slavio_misc_mem_read[3] = { slavio_misc_mem_readb, - slavio_misc_mem_readb, - slavio_misc_mem_readb, + NULL, + NULL, }; static CPUWriteMemoryFunc *slavio_misc_mem_write[3] = { slavio_misc_mem_writeb, - slavio_misc_mem_writeb, - slavio_misc_mem_writeb, + NULL, + NULL, }; static uint32_t slavio_sysctrl_mem_readl(void *opaque, target_phys_addr_t addr) @@ -241,18 +241,18 @@ static void slavio_sysctrl_mem_writel(void *opaque, target_phys_addr_t addr, } static CPUReadMemoryFunc *slavio_sysctrl_mem_read[3] = { - slavio_sysctrl_mem_readl, - slavio_sysctrl_mem_readl, + NULL, + NULL, slavio_sysctrl_mem_readl, }; static CPUWriteMemoryFunc *slavio_sysctrl_mem_write[3] = { - slavio_sysctrl_mem_writel, - slavio_sysctrl_mem_writel, + NULL, + NULL, slavio_sysctrl_mem_writel, }; -static uint32_t slavio_led_mem_reads(void *opaque, target_phys_addr_t addr) +static uint32_t slavio_led_mem_readw(void *opaque, target_phys_addr_t addr) { MiscState *s = opaque; uint32_t ret = 0, saddr; @@ -270,7 +270,7 @@ static uint32_t slavio_led_mem_reads(void *opaque, target_phys_addr_t addr) return ret; } -static void slavio_led_mem_writes(void *opaque, target_phys_addr_t addr, +static void slavio_led_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { MiscState *s = opaque; @@ -289,15 +289,15 @@ static void slavio_led_mem_writes(void *opaque, target_phys_addr_t addr, } static CPUReadMemoryFunc *slavio_led_mem_read[3] = { - slavio_led_mem_reads, - slavio_led_mem_reads, - slavio_led_mem_reads, + NULL, + slavio_led_mem_readw, + NULL, }; static CPUWriteMemoryFunc *slavio_led_mem_write[3] = { - slavio_led_mem_writes, - slavio_led_mem_writes, - slavio_led_mem_writes, + NULL, + slavio_led_mem_writew, + NULL, }; static void slavio_misc_save(QEMUFile *f, void *opaque) |