Commit ee16b24ac827de58c85ef65189e0888cdf9382bc
1 parent
6d066274
misc scsi disk/cdrom fixes/improvements 1/4
Use correct sector size for cdrom Read TOC command Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6951 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
0 deletions
hw/scsi-disk.c
... | ... | @@ -790,6 +790,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag, |
790 | 790 | start_track = buf[6]; |
791 | 791 | bdrv_get_geometry(s->bdrv, &nb_sectors); |
792 | 792 | DPRINTF("Read TOC (track %d format %d msf %d)\n", start_track, format, msf >> 1); |
793 | + nb_sectors /= s->cluster_size; | |
793 | 794 | switch(format) { |
794 | 795 | case 0: |
795 | 796 | toclen = cdrom_read_toc(nb_sectors, outbuf, msf, start_track); | ... | ... |