Commit 4ad804df46b7ca9e743f8c398a4a5a7c6b3a95e9
1 parent
b23b0fd0
ETRAX: Use NULL for subwidth serport reg accesses.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Showing
1 changed file
with
2 additions
and
18 deletions
hw/etraxfs_ser.c
... | ... | @@ -77,13 +77,6 @@ static void ser_update_irq(struct etrax_serial_t *s) |
77 | 77 | s->rw_ack_intr = 0; |
78 | 78 | } |
79 | 79 | |
80 | -static uint32_t ser_readb (void *opaque, target_phys_addr_t addr) | |
81 | -{ | |
82 | - D(CPUState *env = opaque); | |
83 | - D(printf ("%s %x\n", __func__, addr)); | |
84 | - return 0; | |
85 | -} | |
86 | - | |
87 | 80 | static uint32_t ser_readl (void *opaque, target_phys_addr_t addr) |
88 | 81 | { |
89 | 82 | struct etrax_serial_t *s = opaque; |
... | ... | @@ -130,13 +123,6 @@ static uint32_t ser_readl (void *opaque, target_phys_addr_t addr) |
130 | 123 | } |
131 | 124 | |
132 | 125 | static void |
133 | -ser_writeb (void *opaque, target_phys_addr_t addr, uint32_t value) | |
134 | -{ | |
135 | - D(struct etrax_serial_t *s = opaque); | |
136 | - D(CPUState *env = s->env); | |
137 | - D(printf ("%s %x %x\n", __func__, addr, value)); | |
138 | -} | |
139 | -static void | |
140 | 126 | ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value) |
141 | 127 | { |
142 | 128 | struct etrax_serial_t *s = opaque; |
... | ... | @@ -179,14 +165,12 @@ ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value) |
179 | 165 | } |
180 | 166 | |
181 | 167 | static CPUReadMemoryFunc *ser_read[] = { |
182 | - &ser_readb, | |
183 | - &ser_readb, | |
168 | + NULL, NULL, | |
184 | 169 | &ser_readl, |
185 | 170 | }; |
186 | 171 | |
187 | 172 | static CPUWriteMemoryFunc *ser_write[] = { |
188 | - &ser_writeb, | |
189 | - &ser_writeb, | |
173 | + NULL, NULL, | |
190 | 174 | &ser_writel, |
191 | 175 | }; |
192 | 176 | ... | ... |