[Top][All Lists]

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

Re: [PATCH v2 1/2] target/s390x: Fix EXECUTE of relative long instructio

From: Richard Henderson
Subject: Re: [PATCH v2 1/2] target/s390x: Fix EXECUTE of relative long instructions
Date: Wed, 15 Mar 2023 07:33:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 3/14/23 17:11, Ilya Leoshkevich wrote:
The code uses the wrong base for relative addressing: it should use the
target instruction address and not the EXECUTE's address.

Fix by storing the target instruction address in the new CPUS390XState
member and loading it from the code generated by gen_ri2().

Reported-by: Nina Schoetterl-Glausch<nsg@linux.ibm.com>
Signed-off-by: Ilya Leoshkevich<iii@linux.ibm.com>
  target/s390x/cpu.h            |  1 +
  target/s390x/tcg/mem_helper.c |  1 +
  target/s390x/tcg/translate.c  | 13 ++++++++++++-
  3 files chang

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


reply via email to

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