[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Sparc: fix non-faulting unassigned memory acces
From: |
Bob Breuer |
Subject: |
Re: [Qemu-devel] [PATCH] Sparc: fix non-faulting unassigned memory accesses |
Date: |
Tue, 02 Aug 2011 00:59:54 -0500 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
Blue Swirl wrote:
> Commit b14ef7c9ab41ea824c3ccadb070ad95567cca84e
> introduced cpu_unassigned_access() function. On Sparc,
> the function does not restore AREG0 used for global CPUState
> on function exit, causing bugs with non-faulting unassigned
> memory accesses. Alpha, Microblaze and MIPS are not affected.
>
> Fix by restoring AREG0 on exit. Remove excess saving by
> do_unassigned_access() functions.
>
> Also ignore unassigned accesses outside of CPU context.
>
> Reported-by: Bob Breuer <address@hidden>
> Signed-off-by: Blue Swirl <address@hidden>
> ---
> target-sparc/op_helper.c | 25 ++++++++-----------------
> 1 files changed, 8 insertions(+), 17 deletions(-)
>
[snip]
Works for my testcases.
Tested-by: Bob Breuer <address@hidden>