Revision 4a1418e0 ioport.c
b/ioport.c | ||
---|---|---|
196 | 196 |
{ |
197 | 197 |
LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", addr, val); |
198 | 198 |
ioport_write(0, addr, val); |
199 |
#ifdef CONFIG_KQEMU |
|
200 |
if (env) |
|
201 |
env->last_io_time = cpu_get_time_fast(); |
|
202 |
#endif |
|
203 | 199 |
} |
204 | 200 |
|
205 | 201 |
void cpu_outw(CPUState *env, pio_addr_t addr, uint16_t val) |
206 | 202 |
{ |
207 | 203 |
LOG_IOPORT("outw: %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); |
208 | 204 |
ioport_write(1, addr, val); |
209 |
#ifdef CONFIG_KQEMU |
|
210 |
if (env) |
|
211 |
env->last_io_time = cpu_get_time_fast(); |
|
212 |
#endif |
|
213 | 205 |
} |
214 | 206 |
|
215 | 207 |
void cpu_outl(CPUState *env, pio_addr_t addr, uint32_t val) |
216 | 208 |
{ |
217 | 209 |
LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", addr, val); |
218 | 210 |
ioport_write(2, addr, val); |
219 |
#ifdef CONFIG_KQEMU |
|
220 |
if (env) |
|
221 |
env->last_io_time = cpu_get_time_fast(); |
|
222 |
#endif |
|
223 | 211 |
} |
224 | 212 |
|
225 | 213 |
uint8_t cpu_inb(CPUState *env, pio_addr_t addr) |
... | ... | |
227 | 215 |
uint8_t val; |
228 | 216 |
val = ioport_read(0, addr); |
229 | 217 |
LOG_IOPORT("inb : %04"FMT_pioaddr" %02"PRIx8"\n", addr, val); |
230 |
#ifdef CONFIG_KQEMU |
|
231 |
if (env) |
|
232 |
env->last_io_time = cpu_get_time_fast(); |
|
233 |
#endif |
|
234 | 218 |
return val; |
235 | 219 |
} |
236 | 220 |
|
... | ... | |
239 | 223 |
uint16_t val; |
240 | 224 |
val = ioport_read(1, addr); |
241 | 225 |
LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); |
242 |
#ifdef CONFIG_KQEMU |
|
243 |
if (env) |
|
244 |
env->last_io_time = cpu_get_time_fast(); |
|
245 |
#endif |
|
246 | 226 |
return val; |
247 | 227 |
} |
248 | 228 |
|
... | ... | |
251 | 231 |
uint32_t val; |
252 | 232 |
val = ioport_read(2, addr); |
253 | 233 |
LOG_IOPORT("inl : %04"FMT_pioaddr" %08"PRIx32"\n", addr, val); |
254 |
#ifdef CONFIG_KQEMU |
|
255 |
if (env) |
|
256 |
env->last_io_time = cpu_get_time_fast(); |
|
257 |
#endif |
|
258 | 234 |
return val; |
259 | 235 |
} |
Also available in: Unified diff