Re: [PATCH 7/9] hw/misc/aspeed_hace: Do not crash if address_space_map() failed

2022-12-29 Thread Peter Delevoryas
On Thu, Dec 29, 2022 at 04:23:23PM +0100, Philippe Mathieu-Daudé wrote: > address_space_map() can fail: > > uart:~$ hash test > sha256_test > tv[0]: > Segmentation fault: 11 > Thread 3 "qemu-system-arm" received signal SIGSEGV, Segmentation fault. > gen_acc_mode_iov (req_len=0x718b

[PATCH 7/9] hw/misc/aspeed_hace: Do not crash if address_space_map() failed

2022-12-29 Thread Philippe Mathieu-Daudé
address_space_map() can fail: uart:~$ hash test sha256_test tv[0]: Segmentation fault: 11 Thread 3 "qemu-system-arm" received signal SIGSEGV, Segmentation fault. gen_acc_mode_iov (req_len=0x718b7778, id=, iov=0x718b7780, s=0x56ce0bd0) at ../hw/misc/aspeed_hace.c:171