WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 3/5] Fixup dummy cpu setup.

Simon Horman wrote:
>> -    env = cpu_init(NULL);
>> +    if (cpu_model == NULL) {
>> +#ifdef TARGET_X86_64
>> +        cpu_model = "qemu64";
>> +#else
>> +        cpu_model = "qemu32";
>> +#endif
>> +    }
>> +    env = cpu_init(cpu_model);

> Is there a way to achieve this without ifdef nastiness?

Well, one could try to make cpu_init(NULL) pick a sane default.  But in
the end that most likely would just be moving the ifdef to another place.

cheers,
  Gerd

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel