On 03.07.23 17:50, Ilya Leoshkevich wrote:
Using a large R0 causes an assertion error:

     qemu-s390x: target/s390x/tcg/mem_helper.c:183: access_prepare_nf: Assertion `size > 0 
&& size <= 4096' failed.

Even though PoP explicitly advises against using more than 8 bits for the
size, an emulator crash is never a good thing.

Fix by truncating the size to 8 bits.

Fixes: ea0a1053e276 ("s390x/tcg: Implement Miscellaneous-Instruction-Extensions 
Facility 3 for the s390x")
Cc: [email protected]
Signed-off-by: Ilya Leoshkevich <[email protected]>

Reviewed-by: David Hildenbrand <[email protected]>

--
Cheers,

David / dhildenb


Reply via email to