[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: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH] Sparc: fix non-faulting unassigned memory accesses |
Date: |
Wed, 3 Aug 2011 16:55:54 +0000 |
Thanks, applied.
On Tue, Aug 2, 2011 at 5:59 AM, Bob Breuer <address@hidden> wrote:
> 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>
>