Re: [Qemu-devel] Virtualising qmp_query_cpus() arch specifics

2015-07-09 Thread Peter Crosthwaite
On Thu, Jul 9, 2015 at 5:31 AM, Andreas Färber wrote: > Am 09.07.2015 um 08:36 schrieb Peter Crosthwaite: >> Hi All, >> >> So for my multi-arch work, one of the eventual requirements is to >> remove all #define TARGET_FOO from core code. I came across this in >> cpus.c/qmp_query_cpus(): >> >> #if

Re: [Qemu-devel] Virtualising qmp_query_cpus() arch specifics

2015-07-09 Thread Andreas Färber
Am 09.07.2015 um 08:36 schrieb Peter Crosthwaite: > Hi All, > > So for my multi-arch work, one of the eventual requirements is to > remove all #define TARGET_FOO from core code. I came across this in > cpus.c/qmp_query_cpus(): > > #if defined(TARGET_I386) > X86CPU *x86_cpu = X86_CPU(cpu);

[Qemu-devel] Virtualising qmp_query_cpus() arch specifics

2015-07-08 Thread Peter Crosthwaite
Hi All, So for my multi-arch work, one of the eventual requirements is to remove all #define TARGET_FOO from core code. I came across this in cpus.c/qmp_query_cpus(): #if defined(TARGET_I386) X86CPU *x86_cpu = X86_CPU(cpu); CPUX86State *env = &x86_cpu->env; #elif defined(TARGET_PP