[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] target/arm: fix IL bit for data abort exceptions
From: |
Richard Henderson |
Subject: |
Re: [PATCH] target/arm: fix IL bit for data abort exceptions |
Date: |
Thu, 19 Dec 2019 07:50:59 -1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 12/19/19 2:43 AM, Peter Maydell wrote:
> I think this is a regression introduced in commit 46beb58efbb8a2a32
> when we converted the Thumb decoder over to decodetree. Before that
> 16 bit Thumb insns were in a different place in the old decoder and
> the 16-bit Thumb path passed ISSIs16Bit in with its issflags.
> (We should cc: address@hidden on the fix for this.)
Oops, yes, that would be my fault.
>>> /* ISS not valid if writeback */
>>> if (p && !w) {
>>> - ret = rd;
>>> + ret = rd | (s->is_16bit ? ISSIs16Bit : 0);
>>> } else {
>>> ret = ISSInvalid;
>>> }
>
> Rather than setting an is_16bit flag, we could just use
> "dc->base.pc_next - dc->pc_curr == 2", couldn't we?
We could, yes.
r~