Please don't top post.

Am 02.01.2013 um 15:34 schrieb Samuel Seay <lightnin...@gmail.com>:

> I did not catch that, somehow I managed to invert the logic when looking at 
> it. Maybe a g2h() (such a macro exist? what would be the proper method?) 
> around the newsp value would do it.

Sounds reasonable OTOH ;).

> I'll redo that this evening and attempt to submit a newer patch. Considering 
> I don't have direct internet access in the VM, any suggestions to make 
> everyone happy on the patch submission?

Sure. Just export your patch using git format-patch, copy it to your host and 
run git send-mail from there ;).

> 
> I might be able to redo the git setup on my mac and do it from there.

There are easy to install git packages for osx readily available, yeah.

Alex

> 
> Samuel
> 
> On Wed, Jan 2, 2013 at 9:02 AM, Peter Maydell <peter.mayd...@linaro.org> 
> wrote:
> On 2 January 2013 13:01, Samuel Seay <lightnin...@gmail.com> wrote:
> > The VM I did the work in doesn't have internet access and I was unsure how
> > to do a text only email with gmail. With that said, the line that removed
> > the env->gpr[1] is redudant as a few lines below in the original source it
> > is set with newsp. The removed line would seg fault due to trying to write
> > the value of env->gpr[1] into newsp, which is not valid in host.
> 
> No, it's not redundant -- we must save the old value of gpr[1], exactly
> because we are about to change it (set it to newsp). The code is trying
> to do the right thing (copy the old env->gpr[1] value into the guest
> stack frame it is setting up) but in a broken way, so it must be fixed,
> not just removed.
> 
> -- PMM
> 

Reply via email to