From: Andreas Tobler <andreast@FreeBSD.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] fix compilation on FreeBSD for mac_*world.c
Date: Thu, 28 Nov 2013 23:48:29 +0100 [thread overview]
Message-ID: <5297C83D.8010207@FreeBSD.org> (raw)
In-Reply-To: <CAFEAcA84md84xkYFwsn0RjLQV0X=tw5uhbxK3tcUuV9ZDhg3jA@mail.gmail.com>
On 28.11.13 23:38, Peter Maydell wrote:
> On 28 November 2013 21:33, Andreas Tobler <andreast@freebsd.org> wrote:
>> Hello,
>>
>> On 09.11.13 00:15, Andreas Tobler wrote:
>>> Hello,
>>>
>>> the attached patch fixes compilation on FreeBSD for
>>> hw/ppc/mac_new/oldworld.c on FreeBSD.
>>>
>>> The affected function is present in machine/param.h on FreeBSD:
>>>
>>> #define round_page(x) ((((unsigned long)(x)) + PAGE_MASK) & ~(PAGE_MASK))
>>>
>>> To make it compile on FreeBSD I'd like to propose the below patch which
>>> is in use since a longer time on the ports tree (FreeBSD) and in my
>>> personal git tree.
>
> Rather than doing this:
> + #if defined(__FreeBSD__)
> + #undef round_page
> + #endif
>
> personally I'd prefer it if we just replaced the uses of round_page()
> with TARGET_PAGE_ALIGN(), which is the macro we define in
> the headers for aligning up to the next page size.
>
> Up to the ppc submaintainers though...
Whatever you prefer, I'm ready to test....
Thanks for the feedback.
Andreas
next prev parent reply other threads:[~2013-11-28 22:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <527D70A5.7010905@FreeBSD.org>
2013-11-28 21:33 ` [Qemu-devel] [PATCH] fix compilation on FreeBSD for mac_*world.c Andreas Tobler
2013-11-28 22:38 ` Peter Maydell
2013-11-28 22:48 ` Andreas Tobler [this message]
2013-11-29 4:01 ` Andreas Färber
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=5297C83D.8010207@FreeBSD.org \
--to=andreast@freebsd.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).