From: malc <av1474@comtv.ru>
To: "Andreas Färber" <andreas.faerber@web.de>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 1/3] TCG: Mac OS X support for ppc64 target
Date: Sun, 6 Dec 2009 09:28:49 +0300 (MSK) [thread overview]
Message-ID: <Pine.LNX.4.64.0912060927500.5876@linmac.oyster.ru> (raw)
In-Reply-To: <368FA1A4-D06B-48E5-AA22-FBA3A3D4E4CC@web.de>
On Sun, 6 Dec 2009, Andreas F?rber wrote:
>
> Am 06.12.2009 um 06:13 schrieb malc:
>
> > On Sun, 6 Dec 2009, Andreas Faerber wrote:
> >
> > > Darwin/ppc64 does not use function descriptors,
> > > adapt prologue and tcg_out_call accordingly.
> > > GPR2 is available for general use, so let's use it.
> > >
> > > http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/LowLevelABI/110-64-bit_PowerPC_Function_Calling_Conventions/64bitPowerPC.html
> > >
> > > Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
> > > Cc: malc <av1474@comtv.ru>
> > > ---
> > > tcg/ppc64/tcg-target.c | 30 ++++++++++++++++++++++++++++++
> > > 1 files changed, 30 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c
> > > index a612e10..bf9b7d9 100644
> > > --- a/tcg/ppc64/tcg-target.c
> > > +++ b/tcg/ppc64/tcg-target.c
>
> > > @@ -859,10 +882,12 @@ void tcg_target_qemu_prologue (TCGContext *s)
> > > ;
> > > frame_size = (frame_size + 15) & ~15;
> > >
> > > +#ifndef __APPLE__
> > > /* First emit adhoc function descriptor */
> > > addr = (uint64_t) s->code_ptr + 24;
> > > tcg_out32 (s, addr >> 32); tcg_out32 (s, addr); /* entry point */
> > > s->code_ptr += 16; /* skip TOC and environment pointer */
> > > +#endif
> > >
> > > /* Prologue */
> > > tcg_out32 (s, MFSPR | RT (0) | LR);
> >
> > The frame format is different to that of PPC-elf64abi, shouldn't really
> > make a difference here, then again i don't have access to PPC64 Mac OSX,
> > so can't really verify that.
>
> I checked that the linkage area is 48, too, the LR offset is 16, too.
> The parameter area was depicted as 64 < 128.
> So I guess we're good there.
>
> > Otherwise looks good.. Should i commit it with R13 fixed?
>
> About the callee-save stuff I was less certain. Feel free to make
> modifications (e.g., moving tcg_out_call up?) or have me resubmit.
Sorry, i don't get this part, i was just thinking of removing R13 from
the list. Moving tcg_out_call?
--
mailto:av1474@comtv.ru
next prev parent reply other threads:[~2009-12-06 6:28 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-06 4:57 [Qemu-devel] Adding support for Mac OS X ppc64 host Andreas Faerber
2009-12-06 4:57 ` [Qemu-devel] [PATCH 1/3] TCG: Mac OS X support for ppc64 target Andreas Faerber
2009-12-06 4:57 ` [Qemu-devel] [PATCH 2/3] Cocoa: ppc64 host support Andreas Faerber
2009-12-06 4:57 ` [Qemu-devel] [PATCH 3/3] Cocoa: Silence warnings Andreas Faerber
2009-12-06 5:13 ` [Qemu-devel] Re: [PATCH 1/3] TCG: Mac OS X support for ppc64 target malc
2009-12-06 5:25 ` Andreas Färber
2009-12-06 6:28 ` malc [this message]
2009-12-06 13:00 ` [Qemu-devel] [PATCH v2 " Andreas Faerber
2009-12-06 13:00 ` [Qemu-devel] [PATCH v2 2/3] Cocoa: ppc64 host support Andreas Faerber
2009-12-06 13:00 ` [Qemu-devel] [PATCH v2 3/3] Cocoa: Silence warnings Andreas Faerber
2009-12-06 13:02 ` [Qemu-devel] Re: [PATCH v2 2/3] Cocoa: ppc64 host support Alexander Graf
2009-12-06 13:23 ` Andreas Färber
2009-12-06 13:32 ` Alexander Graf
2009-12-06 13:41 ` Mike Kronenberg
2009-12-06 14:09 ` Andreas Färber
2009-12-06 15:21 ` [Qemu-devel] [PATCH v3 1/3] TCG: Mac OS X support for ppc64 target Andreas Faerber
2009-12-06 15:21 ` [Qemu-devel] [PATCH v3 2/3] Cocoa: ppc64 host support Andreas Faerber
2009-12-06 15:21 ` [Qemu-devel] [PATCH v3 3/3] Cocoa: Silence warnings Andreas Faerber
2009-12-06 13:08 ` [Qemu-devel] Re: [PATCH 1/3] TCG: Mac OS X support for ppc64 target Andreas Färber
2009-12-06 5:14 ` [Qemu-devel] Adding support for Mac OS X ppc64 host malc
2009-12-06 5:41 ` Andreas Färber
2009-12-06 6:37 ` malc
2009-12-11 21:32 ` Andreas Färber
2009-12-12 13:00 ` malc
2009-12-15 17:00 ` malc
2009-12-15 22:36 ` Andreas Färber
2009-12-12 1:21 ` Andreas Färber
2009-12-12 12:58 ` malc
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=Pine.LNX.4.64.0912060927500.5876@linmac.oyster.ru \
--to=av1474@comtv.ru \
--cc=andreas.faerber@web.de \
--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 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).