All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org, jurij@wooyd.org
Subject: Re: [Qemu-devel] Re: Some patches for qemu on sparc
Date: Sat, 11 Feb 2006 04:38:36 +0000	[thread overview]
Message-ID: <200602110438.37854.paul@codesourcery.com> (raw)
In-Reply-To: <Pine.LNX.4.63.0602102018270.3285@bobcat>

> Thanks for your feedback. I've added additional check to dyngen.c, which
> checks that function has either save; in the beginning and ret; restore;
> in the end, or ends in retl; nop;. That allowed me to get past the arm
> target build failure. Now it fails (during dyngen check) on ppc target,
> the culprit is the following function:
>
> 000033d8 <op_stfs_raw>:
>      33d8:       9c 03 bf 90     add  %sp, -112, %sp
>      33dc:       d1 19 a0 f8     ldd  [ %g6 + 0xf8 ], %f8
>      33e0:       91 a0 18 c8     fdtos  %f8, %f8
>      33e4:       d1 23 a0 64     st  %f8, [ %sp + 0x64 ]
>      33e8:       c8 03 a0 64     ld  [ %sp + 0x64 ], %g4
>      33ec:       99 39 20 18     sra  %g4, 0x18, %o4
>      33f0:       97 39 20 10     sra  %g4, 0x10, %o3
>      33f4:       95 39 20 08     sra  %g4, 8, %o2
>      33f8:       c8 28 60 03     stb  %g4, [ %g1 + 3 ]
>      33fc:       d8 28 40 00     stb  %o4, [ %g1 ]
>      3400:       d6 28 60 01     stb  %o3, [ %g1 + 1 ]
>      3404:       d4 28 60 02     stb  %o2, [ %g1 + 2 ]
>      3408:       81 c3 e0 08     retl
>      340c:       9c 23 bf 90     sub  %sp, -112, %sp
>
> What should dyngen do about a function like that?

Maybe a better strategy is to force generation of a register window save with 
the FORCE_RET macro.

#define FORCE_RET() asm volatile("":::"o0");

Seems to do the trick.

Paul

  reply	other threads:[~2006-02-11  4:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BAY104-F2639F2DD422A0C462B90C6FF000@phx.gbl>
2006-02-11  4:23 ` [Qemu-devel] Re: Some patches for qemu on sparc Jurij Smakov
2006-02-11  4:38   ` Paul Brook [this message]
2006-02-11  5:17     ` Jurij Smakov
2006-02-11 14:04       ` Paul Brook
2006-02-11 15:12   ` Blue Swirl
2006-02-12  4:51     ` Jurij Smakov
2006-02-12  8:21       ` Blue Swirl
2006-02-13  5:20         ` Jurij Smakov
2006-02-14 20:04           ` Blue Swirl

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=200602110438.37854.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=jurij@wooyd.org \
    --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.