ETRAX: Use NULL for subwidth serport reg accesses.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
Edgar E. Iglesias 2009-05-05 12:48:54 +02:00
parent b23b0fd063
commit 4ad804df46

View File

@ -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;
@ -129,13 +122,6 @@ static uint32_t ser_readl (void *opaque, target_phys_addr_t addr)
return r;
}
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)
{
@ -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,
};