summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-05 12:48:54 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-05 12:48:54 +0200
commit4ad804df46b7ca9e743f8c398a4a5a7c6b3a95e9 (patch)
treed904344028d70ac9c76df31cfda96c8c13ddaa04
parentb23b0fd063be1a54979df6acbda09011c7e1b626 (diff)
ETRAX: Use NULL for subwidth serport reg accesses.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r--hw/etraxfs_ser.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/hw/etraxfs_ser.c b/hw/etraxfs_ser.c
index ab104ba0c..9a0a21bb2 100644
--- a/hw/etraxfs_ser.c
+++ b/hw/etraxfs_ser.c
@@ -77,13 +77,6 @@ static void ser_update_irq(struct etrax_serial_t *s)
s->rw_ack_intr = 0;
}
-static uint32_t ser_readb (void *opaque, target_phys_addr_t addr)
-{
- D(CPUState *env = opaque);
- D(printf ("%s %x\n", __func__, addr));
- return 0;
-}
-
static uint32_t ser_readl (void *opaque, target_phys_addr_t addr)
{
struct etrax_serial_t *s = opaque;
@@ -130,13 +123,6 @@ static uint32_t ser_readl (void *opaque, target_phys_addr_t addr)
}
static void
-ser_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)
-{
- D(struct etrax_serial_t *s = opaque);
- D(CPUState *env = s->env);
- D(printf ("%s %x %x\n", __func__, addr, value));
-}
-static void
ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
{
struct etrax_serial_t *s = opaque;
@@ -179,14 +165,12 @@ ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
}
static CPUReadMemoryFunc *ser_read[] = {
- &ser_readb,
- &ser_readb,
+ NULL, NULL,
&ser_readl,
};
static CPUWriteMemoryFunc *ser_write[] = {
- &ser_writeb,
- &ser_writeb,
+ NULL, NULL,
&ser_writel,
};