qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH] Changes default cdrom options to work better with


From: Programmingkid
Subject: Re: [Qemu-ppc] [PATCH] Changes default cdrom options to work better with Mac OS X.
Date: Sat, 22 Jun 2013 21:14:35 -0400

On Jun 22, 2013, at 9:08 PM, Alexander Graf wrote:

> 
> On 23.06.2013, at 03:04, Programmingkid wrote:
> 
>> This patch makes the default cdrom options more compatible with Mac OS X.
>> 
>> With this patch I was finally able to see "Got boot device" printed by 
>> Darwin 8! This made the installer for Darwin 8 actually show up in QEMU. 
>> 
>> signed-off-by: John Arbuckle <address@hidden>
>> 
>> ---
>> vl.c |    2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>> 
>> diff --git a/vl.c b/vl.c
>> index a8dc73d..cb53656 100644
>> --- a/vl.c
>> +++ b/vl.c
>> @@ -3085,7 +3085,7 @@ int main(int argc, char **argv, char **envp)
>>                qemu_opts_set(qemu_find_opts("machine"), 0, "dtb", optarg);
>>                break;
>>            case QEMU_OPTION_cdrom:
>> -                drive_add(IF_DEFAULT, 2, optarg, CDROM_OPTS);
>> +                drive_add(IF_IDE, 0, optarg, CDROM_OPTS);
> 
> Consider me puzzled. Why is IF_DEFAULT and different from IF_IDE on g3beige?
> 
> 
> Alex
> 


Because IF_DEFAULT is equal to -1 and IF_IDE is equal to 0. Their definition is 
in blockdev.h.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]