Re: [PATCH 07/12] target/s390x: Fix relative long instructions with large offsets

2023-07-04 Thread David Hildenbrand
On 03.07.23 17:50, Ilya Leoshkevich wrote: 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 --- target/s390x/t

[PATCH 07/12] target/s390x: Fix relative long instructions with large offsets

2023-07-03 Thread Ilya Leoshkevich
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 --- target/s390x/tcg/translate.c | 2 +- 1 file changed, 1 inser