From: "J. Mayer" <l_indien@magic.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Build failure on OS X
Date: Sun, 30 Sep 2007 16:37:28 +0200 [thread overview]
Message-ID: <1191163048.29900.138.camel@rapid> (raw)
In-Reply-To: <CDF9A00E-D091-4706-99F1-8975554F9697@web.de>
On Sun, 2007-09-30 at 16:28 +0200, Andreas Färber wrote:
> Am 30.09.2007 um 15:27 schrieb J. Mayer:
>
> > On Sun, 2007-09-30 at 15:08 +0200, Andreas Färber wrote:
> >> Am 30.09.2007 um 14:17 schrieb J. Mayer:
> >>> Would this new definition solve the compilation failure ?
> >>>
> >>> #ifndef always_inline
> >>> #if (__GNUC__ < 3) || defined(__APPLE__)
> >>> #define always_inline inline
> >>> #else
> >>> #define always_inline __attribute__ (( always_inline )) inline
> >>> #endif
> >>> #endif
> >>
> >> It does.
> >
> > OK, then I will commit this fixup, even if it may generate slower code
> > for interrupt processing (which is already something slow...).
>
> Well, slower compared to Linux certainly, but there's no fancy
> acceleration anyway. I consider working+slow better than not working
> at all.
I fully agree...
> If someone has a speedup idea for the __APPLE__ case, that could
> still be applied separately.
I guess there are some already defined macros in the Apple build
environmnet that should be used instead. But I don't know too much about
this environment... The slowdown is really not an issue in that
particular case.
> > the alias attribute is used to define a new function name that
> > actually
> > refer to another existant function, this to avoid code duplication. We
> > can easily avoid using it using an inline function for the actual
> > implementation and calling it from different places. Please take a
> > look
> > at this patch.
>
> Patch looks okay to me and compiles. Again, I have no idea about the
> implications and any performance impact.
It has no performance impact, it just duplicates one (small) function in
the generated object, which will not have any impact.
> Either way, if I run "qemu-system-ppc -boot d -cdrom debian-40r0-
> powerpc-DVD-1.iso" this is what I get:
>
> starting qemu...
> qemu: fatal: Unable to find PowerPC CPU definition
>
> NIP fffffffc LR 00000000 CTR 00000000
> Bus error
> I haven't used it in a while; as reported earlier, it didn't really
> work back then either, but it worked "more", i.e. started to boot.
> But this is with or without the patch, so unrelated - just saying I
> can't confirm that this patch works 100%.
OK, just checked and I have this problem too. Will fix it as soon as I
can.
In between, you can just try to force the CPU, adding '-cpu 750' or
'-cpu 604' to your command line.
Thanks for this report !
Regards.
--
J. Mayer <l_indien@magic.fr>
Never organized
next prev parent reply other threads:[~2007-09-30 14:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-30 10:09 [Qemu-devel] Build failure on OS X Andreas Färber
2007-09-30 11:45 ` J. Mayer
2007-09-30 12:05 ` Andreas Färber
2007-09-30 12:17 ` J. Mayer
2007-09-30 13:08 ` Andreas Färber
2007-09-30 13:27 ` J. Mayer
2007-09-30 14:28 ` Andreas Färber
2007-09-30 14:37 ` J. Mayer [this message]
2007-09-30 15:05 ` Andreas Färber
2007-09-30 15:54 ` Andreas Färber
2007-10-03 11:12 ` Andreas Färber
2007-10-01 2:36 ` J. Mayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1191163048.29900.138.camel@rapid \
--to=l_indien@magic.fr \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.