mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 21:42:06 -06:00
suppressed ppc ide hack - fixed read toc for Darwin/PPC
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1509 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
61271e5c2d
commit
a368741bf2
1 changed files with 10 additions and 9 deletions
19
hw/ide.c
19
hw/ide.c
|
@ -1118,10 +1118,16 @@ static int cdrom_read_toc_raw(IDEState *s, uint8_t *buf, int msf,
|
||||||
*q++ = 0; /* min */
|
*q++ = 0; /* min */
|
||||||
*q++ = 0; /* sec */
|
*q++ = 0; /* sec */
|
||||||
*q++ = 0; /* frame */
|
*q++ = 0; /* frame */
|
||||||
*q++ = 0;
|
if (msf) {
|
||||||
*q++ = 0;
|
*q++ = 0;
|
||||||
*q++ = 0;
|
lba_to_msf(q, 0);
|
||||||
*q++ = 0;
|
q += 3;
|
||||||
|
} else {
|
||||||
|
*q++ = 0;
|
||||||
|
*q++ = 0;
|
||||||
|
*q++ = 0;
|
||||||
|
*q++ = 0;
|
||||||
|
}
|
||||||
|
|
||||||
len = q - buf;
|
len = q - buf;
|
||||||
cpu_to_ube16(buf, len - 2);
|
cpu_to_ube16(buf, len - 2);
|
||||||
|
@ -1488,11 +1494,6 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val)
|
||||||
unit = (val >> 4) & 1;
|
unit = (val >> 4) & 1;
|
||||||
s = ide_if + unit;
|
s = ide_if + unit;
|
||||||
ide_if->cur_drive = s;
|
ide_if->cur_drive = s;
|
||||||
#ifdef TARGET_PPC
|
|
||||||
/* XXX: currently a workaround for Darwin/PPC. Need to check
|
|
||||||
the IDE spec to see if it is correct */
|
|
||||||
ide_set_signature(s);
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case 7:
|
case 7:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue