diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-01-01 17:06:38 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-01-01 17:06:38 +0000 |
commit | 7c560456707bfe53eb1728fcde759be7d9418b62 (patch) | |
tree | f0faa190268d9b42e6a25758c36ac8c5e7380d1f /hw/eccmemctl.c | |
parent | ff403da6a76ac4879da101768e5a956c9582b8db (diff) |
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/eccmemctl.c')
-rwxr-xr-x | hw/eccmemctl.c | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/hw/eccmemctl.c b/hw/eccmemctl.c index 0b44fabce..a63a52822 100755 --- a/hw/eccmemctl.c +++ b/hw/eccmemctl.c @@ -93,30 +93,6 @@ typedef struct ECCState { uint32_t regs[ECC_NREGS]; } ECCState; -static void ecc_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) -{ - printf("ECC: Unsupported write 0x" TARGET_FMT_plx " %02x\n", - addr, val & 0xff); -} - -static uint32_t ecc_mem_readb(void *opaque, target_phys_addr_t addr) -{ - printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 00\n", addr); - return 0; -} - -static void ecc_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val) -{ - printf("ECC: Unsupported write 0x" TARGET_FMT_plx " %04x\n", - addr, val & 0xffff); -} - -static uint32_t ecc_mem_readw(void *opaque, target_phys_addr_t addr) -{ - printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 0000\n", addr); - return 0; -} - static void ecc_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { ECCState *s = opaque; @@ -201,14 +177,14 @@ static uint32_t ecc_mem_readl(void *opaque, target_phys_addr_t addr) } static CPUReadMemoryFunc *ecc_mem_read[3] = { - ecc_mem_readb, - ecc_mem_readw, + NULL, + NULL, ecc_mem_readl, }; static CPUWriteMemoryFunc *ecc_mem_write[3] = { - ecc_mem_writeb, - ecc_mem_writew, + NULL, + NULL, ecc_mem_writel, }; |