qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT d904344] ETRAX: Use NULL for subwidth serport reg


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT d904344] ETRAX: Use NULL for subwidth serport reg accesses.
Date: Tue, 05 May 2009 11:16:10 -0000

From: Edgar E. Iglesias <address@hidden>

Signed-off-by: Edgar E. Iglesias <address@hidden>

diff --git a/hw/etraxfs_ser.c b/hw/etraxfs_ser.c
index ab104ba..9a0a21b 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,
 };
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]