[PATCH] hw/char/riscv_htif: Fix 64-bit var write order in 32-bit system

2024-07-30 Thread Nikita Novikov
) because of machine instructions order swapping. That causes wrong behaviour of HTIF device. This patch is removing dependency of writing order, so the device will work correctly regardless of compilers. Signed-off-by: Nikita Novikov --- hw/char/riscv_htif.c | 43

[PATCH] hw/char/riscv_htif: Fix 64-bit var write order in 32-bit system

2024-07-30 Thread Nikita Novikov
) because of machine instructions order swapping. That causes wrong behaviour of HTIF device. This patch is removing dependency of writing order, so the device will work correctly regardless of compilers. Signed-off-by: Nikita Novikov --- hw/char/riscv_htif.c | 43