qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [Qemu-devel] [PATCH] target-arm: Fix translation level on


From: Peter Maydell
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH] target-arm: Fix translation level on early translation faults
Date: Thu, 3 Mar 2016 13:49:51 +0000

On 2 March 2016 at 19:19, Sergey Fedorov <address@hidden> wrote:
> On 02.03.2016 21:04, Sergey Sorokin wrote:
>> Qemu reports translation fault on 1st level instead of 0th level in case of
>> AArch64 address translation if the translation table walk is disabled or
>> the address is in the gap between the two regions.
>
> It's probably not a very clear description in the commit message. IIUC,
> level 0 fault is reported in case of any fault from TTBR in AArch64 state.

Yes (though you mean "under an AArch64 translation regime"). Conversely, the
only fault reported at level 0 under an AArch32 translation regime is
the AddressSize fault (for bad addresses in TTBR0/1), which we don't
currently implement.

There's also a code path later in the function that does
    level = va_size == 64 ? 0 : 1;

but I'm not sure it's worth rearranging that code to avoid the
duplication of "what level do we report this kind of fault at?".

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]