diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-07-04 10:12:31 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-07-10 15:34:24 +0200 |
commit | 349372ff9e3e7c047e258383f061a8617f66adc3 (patch) | |
tree | fd45a5d922c27eaa430bd23e952a82677c42b1da /COPYING | |
parent | b0ef81062d2404ccef0289b1cc6e70244901c9be (diff) | |
download | qemu-349372ff9e3e7c047e258383f061a8617f66adc3.zip qemu-349372ff9e3e7c047e258383f061a8617f66adc3.tar.gz qemu-349372ff9e3e7c047e258383f061a8617f66adc3.tar.bz2 |
target/s390x: Fix relative long instructions with large offsets
The expression "imm * 2" in gen_ri2() can wrap around if imm is large
enough.
Fix by casting imm to int64_t, like it's done in disas_jdest().
Fixes: e8ecdfeb30f0 ("Fix EXECUTE of relative branches")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230704081506.276055-8-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions