All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blauwirbel@gmail.com>
Subject: Re: [Qemu-devel] Crash due to invalid env->current_tb
Date: Sat, 3 May 2008 23:02:32 +0100	[thread overview]
Message-ID: <200805032302.32996.paul@codesourcery.com> (raw)
In-Reply-To: <f43fc5580805031100n2524b532sa4f15b51a7011c35@mail.gmail.com>

> I made a new version that does not use T0 at all. Tested on i386 and
> AMD64, both Sparc32 and Sparc64 work. AMD64 asm version does not seem
> to be necessary.

I guess amd64 is currently working by luck rather than by design.

You're pushing a single word to the stack, which could cause issues with stack 
alignment. I suggest:

sub $12,%%esp
push %%ebp
call *%1
pop %%ebp
add $12,%%esp

Likewise for amd64 you want sub $8, %%rsp, etc.

> +                              :  "ebx", "ecx", "edx", "esi", "edi", "cc");

You also want to add "memory" here.

>  #else
> -                T0 = gen_func();
> +                next_tb = gen_func();

I'd just make this a #error. Other host are likely to need special 
consideration anyway.

Other than that, looks ok to me.

Paul

  reply	other threads:[~2008-05-03 22:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29 11:56 [Qemu-devel] Crash due to invalid env->current_tb Adam Lackorzynski
2008-04-29 17:09 ` Blue Swirl
2008-04-29 18:40   ` Adam Lackorzynski
2008-04-30  9:08     ` Alexander Graf
2008-04-30 15:11       ` Adam Lackorzynski
2008-04-30 15:21         ` Adam Lackorzynski
2008-04-30 17:09           ` Blue Swirl
2008-04-30 17:30           ` Alexander Graf
2008-04-30 18:21             ` Blue Swirl
2008-05-01 12:02               ` Adam Lackorzynski
2008-05-01 15:02                 ` Blue Swirl
2008-05-01 16:04                   ` Paul Brook
2008-05-01 16:15                     ` Blue Swirl
2008-05-01 16:31                       ` Paul Brook
2008-05-02 15:41                   ` Adam Lackorzynski
2008-05-03 18:00                     ` Blue Swirl
2008-05-03 22:02                       ` Paul Brook [this message]
2008-04-30 15:28         ` Laurent Vivier
2008-04-30 20:36           ` Adam Lackorzynski
2008-05-02  1:39             ` Bernhard Kauer

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=200805032302.32996.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=blauwirbel@gmail.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 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.