From: Nathan Froyd <froydnj@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/4] move PPC insn flags to cpu.h
Date: Sat, 28 Mar 2009 16:07:52 -0700 [thread overview]
Message-ID: <20090328230751.GJ7336@codesourcery.com> (raw)
In-Reply-To: <20090328225805.GM20944@hall.aurel32.net>
On Sat, Mar 28, 2009 at 11:58:05PM +0100, Aurelien Jarno wrote:
> On Sat, Mar 28, 2009 at 02:30:14PM -0700, Nathan Froyd wrote:
> > It makes more sense to put the flags in the header file than in the
> > middle of translate.c.
>
> If those definition are not used outside of translate.c, it makes no
> sense to move them out to a header file included at multiple places.
>
> OTOH, I agree that having them in the middle of translate.c is a bit
> strange. Maybe we should move them at the top of the file along with
> other definitions? In that case, GEN_HANDLER* and EXTRACT_HELPER are
> also good candidates for the move.
Whether they are placed at the top of translate.c or in cpu.h makes no
difference for this patch. I have an implementation of linux-user
signal handling for PPC32 that I'd like to submit soon, though. It
requires knowing what capabilities the CPU supports so it can figure out
what registers to save while setting up the signal frame. (Saving the
floating point registers makes no difference modulo speed, but the save
areas for the Altivec and SPE registers overlap.) So in the interest of
not having to move them twice, I'm lobbying for placing them in cpu.h.
I think many of the GEN_HANDLER macros are localized enough that they
should remain where they are...my kingdom for a MACROLET.
-Nathan
next prev parent reply other threads:[~2009-03-28 23:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-28 21:30 [Qemu-devel] [PATCH 0/4] target-ppc: create TCG slots for registers based on CPU Nathan Froyd
2009-03-28 21:30 ` [Qemu-devel] [PATCH 1/4] move PPC insn flags to cpu.h Nathan Froyd
2009-03-28 22:58 ` Aurelien Jarno
2009-03-28 23:07 ` Nathan Froyd [this message]
2009-03-28 23:14 ` Aurelien Jarno
2009-03-28 21:30 ` [Qemu-devel] [PATCH 2/4] move ppc_def_t definition " Nathan Froyd
2009-03-28 21:30 ` [Qemu-devel] [PATCH 3/4] pass the cpu definition to ppc_translate_init Nathan Froyd
2009-03-28 21:30 ` [Qemu-devel] [PATCH 4/4] create TCG slots for registers based on CPU Nathan Froyd
2009-03-28 22:54 ` [Qemu-devel] [PATCH 0/4] target-ppc: " Aurelien Jarno
2009-03-29 0:18 ` Nathan Froyd
2009-03-29 13:34 ` Aurelien Jarno
2009-03-29 14:42 ` Aurelien Jarno
2009-03-29 14:57 ` Aurelien Jarno
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=20090328230751.GJ7336@codesourcery.com \
--to=froydnj@codesourcery.com \
--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).