[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] checking if linux-user address is mapped (sparc)
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] checking if linux-user address is mapped (sparc) |
Date: |
Wed, 3 Sep 2008 19:08:26 +0300 |
On 9/3/08, Vince Weaver <address@hidden> wrote:
> Hello
>
> so now I'm trying to get the vpr spec2k benchmarks going under
> sparc32plus-linux-user
>
> In an optimized memory scanning routine the code is doing:
>
> ldxa [ %o0 ] #ASI_PNF, %o3
>
> Which is a load from the "no fault" address space.
> What this means is that even if you are loading from an invalid address, no
> fault should occur.
>
> qemu of course segfaults when the address is invalid.
>
> Is there some way to check in linux-user if a virtual memory address is
> mapped? That way it could be checked before the ldl_raw() is run?
>
> hopefully I am not misunderstanding the bug here.
Could you test this patch?
no_fault_accesses.diff
Description: plain/text