@@ -421,6 +421,15 @@ static void ide_sector_read(IDEState *s)
ide_set_irq(s->bus);
ide_set_sector(s, sector_num + n);
s->nsector -= n;
+ if ((s->status & DRQ_STAT)) {
+ static int val = 1;
+ if (((val++) == 1000)) {
+ qemu_aio_flush();
+ vm_stop(0);
+ printf("stopped %d ide_ioport_readaaa\n", val);
+ }
+ }
+
}
}
@@ -2744,6 +2753,14 @@ static int ide_drive_pio_post_load(void *opaque, int version_id)
s->data_ptr = s->io_buffer + s->cur_io_buffer_offset;
s->data_end = s->data_ptr + s->cur_io_buffer_len;
+ printf("addr %p: status %d\n", s, s->status& DRQ_STAT);
+ printf("\tdata_ptr %p\n", s->data_ptr);
+ printf("\tdata_end %p\n", s->data_end);
+ printf("\tio_buffer %p\n", s->io_buffer);
+ printf("\treq_nb_sectors %d\n", s->req_nb_sectors);
+ printf("\tidx %d\n", transfer_end_table_idx(s->end_transfer_func));
+ printf("\telementary_transfer_size %d\n", s->elementary_transfer_size);
+ printf("\tpacket_transfer_size %d\n", s->packet_transfer_size);
return 0;
}
@@ -2763,6 +2780,15 @@ static void ide_drive_pio_pre_save(void *opaque)
} else {
s->end_transfer_fn_idx = idx;
}
+
+ printf("addr %p: status %d\n", s, s->status& DRQ_STAT);
+ printf("\tdata_ptr %p\n", s->data_ptr);
+ printf("\tdata_end %p\n", s->data_end);
+ printf("\tio_buffer %p\n", s->io_buffer);
+ printf("\treq_nb_sectors %d\n", s->req_nb_sectors);
+ printf("\tidx %d\n", transfer_end_table_idx(s->end_transfer_func));
+ printf("\telementary_transfer_size %d\n", s->elementary_transfer_size);
+ printf("\tpacket_transfer_size %d\n", s->packet_transfer_size);
}
static bool ide_drive_pio_state_needed(void *opaque)