[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qemu-system-hppa: Raise exception 26 on emulate
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH] qemu-system-hppa: Raise exception 26 on emulated hardware |
Date: |
Mon, 8 Oct 2018 14:50:02 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
On 10/7/18 1:51 PM, Helge Deller wrote:
> On PCXS chips (PA7000, pa 1.1a), trap #18 is raised on memory faults,
> while all later chips (>= PA7100) generate either trap #26, #27 or #28
> (depending on the fault type).
>
> Since the current qemu emulation emulates a B160L machine (with a
> PA7300LC PCX-L2 chip, we should raise trap #26 (EXCP_DMAR) instead of
> #18 (EXCP_DMP) on access faults by the Linux kernel to page zero.
>
> With the patch we now get the correct output (I tested against real
> hardware):
> Kernel Fault: Code=26 (Data memory access rights trap) (Addr=00000004)
> instead of:
> Kernel Fault: Code=18 (Data memory protection/unaligned access trap)
> (Addr=00000004)
>
> Signed-off-by: Helge Deller <address@hidden>
Queued, thanks.
r~