On 10 September 2013 23:07, Richard Henderson <r...@twiddle.net> wrote: > Allow host "detection" on non-linux hosts. > > Signed-off-by: Richard Henderson <r...@twiddle.net> > --- > util/getauxval.c | 56 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 54 insertions(+), 2 deletions(-) > > diff --git a/util/getauxval.c b/util/getauxval.c > index 59f53ff..e7f7d63 100644 > --- a/util/getauxval.c > +++ b/util/getauxval.c > @@ -60,12 +60,64 @@ void qemu_init_auxval(char **envp) > > static const char *default_platform(void) > { > - return NULL; > + const char *ret = NULL; > + > +#ifdef _ARCH_PPC > +# if defined(_ARCH_PWR8) > + ret = "power8"; > +# elif defined(_ARCH_PWR7)
All these arch-specific ifdefs seem out of place in a generic util/ source file. -- PMM