* [Qemu-devel] [PATCH] Modification to remove a h2g() call and calculate properly instead
@ 2013-01-05 0:35 Samuel Seay
2013-01-07 15:22 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Seay @ 2013-01-05 0:35 UTC (permalink / raw)
To: qemu-devel, qemu-ppc; +Cc: Samuel Seay
Peter Maydell recommended the change to be more proper. The result was tested
and shows coming up with the same proper value.
Signed-off-by: Samuel Seay <LightningTH@GMail.com>
---
linux-user/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/signal.c b/linux-user/signal.c
index c43b8ac..bb08a93 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -4614,7 +4614,7 @@ static void setup_frame(int sig, struct target_sigaction *ka,
/* Set up registers for signal handler. */
env->gpr[1] = newsp;
env->gpr[3] = signal;
- env->gpr[4] = (target_ulong) h2g(sc);
+ env->gpr[4] = frame_addr + offsetof(struct target_sigframe, sctx);
env->nip = (target_ulong) ka->_sa_handler;
/* Signal handlers are entered in big-endian mode. */
env->msr &= ~MSR_LE;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH] Modification to remove a h2g() call and calculate properly instead
2013-01-05 0:35 [Qemu-devel] [PATCH] Modification to remove a h2g() call and calculate properly instead Samuel Seay
@ 2013-01-07 15:22 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2013-01-07 15:22 UTC (permalink / raw)
To: Samuel Seay; +Cc: qemu-ppc, qemu-devel
On 05.01.2013, at 01:35, Samuel Seay wrote:
> Peter Maydell recommended the change to be more proper. The result was tested
> and shows coming up with the same proper value.
>
> Signed-off-by: Samuel Seay <LightningTH@GMail.com>
Thanks, applied to ppc-next with a modified subject line.
Please take a few minutes and read through patch subjects and patch descriptions of other people's patches (just run git log) to get a hang for what exactly would be useful to have in there and what wouldn't.
Alex
> ---
> linux-user/signal.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/linux-user/signal.c b/linux-user/signal.c
> index c43b8ac..bb08a93 100644
> --- a/linux-user/signal.c
> +++ b/linux-user/signal.c
> @@ -4614,7 +4614,7 @@ static void setup_frame(int sig, struct target_sigaction *ka,
> /* Set up registers for signal handler. */
> env->gpr[1] = newsp;
> env->gpr[3] = signal;
> - env->gpr[4] = (target_ulong) h2g(sc);
> + env->gpr[4] = frame_addr + offsetof(struct target_sigframe, sctx);
> env->nip = (target_ulong) ka->_sa_handler;
> /* Signal handlers are entered in big-endian mode. */
> env->msr &= ~MSR_LE;
> --
> 1.7.9.5
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-07 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-05 0:35 [Qemu-devel] [PATCH] Modification to remove a h2g() call and calculate properly instead Samuel Seay
2013-01-07 15:22 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
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).