Re: [PATCH] hw/misc: Fix invalid size assertions in exynos4210_rng read/write functions

2024-06-18 Thread Philippe Mathieu-Daudé
On 18/6/24 16:50, Zheyu Ma wrote: This commit updates the exynos4210_rng_read() and exynos4210_rng_write() functions to handle cases where the size is not 4 bytes. Instead of asserting, which causes the program to abort, the functions now log an error message and return a default value for reads

[PATCH] hw/misc: Fix invalid size assertions in exynos4210_rng read/write functions

2024-06-18 Thread Zheyu Ma
This commit updates the exynos4210_rng_read() and exynos4210_rng_write() functions to handle cases where the size is not 4 bytes. Instead of asserting, which causes the program to abort, the functions now log an error message and return a default value for reads or do nothing for writes when the si