[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] target/arm: Set ISSIs16Bit in make_issinfo
From: |
Alex Bennée |
Subject: |
Re: [PATCH] target/arm: Set ISSIs16Bit in make_issinfo |
Date: |
Fri, 20 Dec 2019 13:35:27 +0000 |
User-agent: |
mu4e 1.3.5; emacs 27.0.50 |
Richard Henderson <address@hidden> writes:
> During the conversion to decodetree, the setting of
> ISSIs16Bit got lost. This causes the guest os to
> incorrectly adjust trapping memory operations.
>
> Fixes: 46beb58efbb8a2a32
It's not really obvious from this commit where we end up now calling...
> Cc: address@hidden
> Reported-by: Jeff Kubascik <address@hidden>
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> target/arm/translate.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/target/arm/translate.c b/target/arm/translate.c
> index 2b6c1f91bf..9f0afbdb75 100644
> --- a/target/arm/translate.c
> +++ b/target/arm/translate.c
> @@ -8556,6 +8556,9 @@ static ISSInfo make_issinfo(DisasContext *s, int rd,
> bool p, bool w)
> /* ISS not valid if writeback */
> if (p && !w) {
> ret = rd;
> + if (s->base.pc_next - s->pc_curr == 2) {
> + ret |= ISSIs16Bit;
> + }
this function.
Should I be seeing op_load_rr/ri in the included generated functions?
> } else {
> ret = ISSInvalid;
> }
--
Alex Bennée