Revision 4ad804df

b/hw/etraxfs_ser.c
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 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 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

  

Also available in: Unified diff