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

2024-08-04 Thread Alistair Francis
On Wed, Jul 31, 2024 at 12:51 AM Nikita Novikov wrote: > > When we are trying to write 64-bit value in 32-bit system, the value in HTIF > device divides > on 2 separate 32-bit parts. So device expects write to xHOST_OFFSET1 first, > then to xHOST_OFFSET2. > But some compilers (ex. CLANG) can cha

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

2024-07-30 Thread Nikita Novikov
When we are trying to write 64-bit value in 32-bit system, the value in HTIF device divides on 2 separate 32-bit parts. So device expects write to xHOST_OFFSET1 first, then to xHOST_OFFSET2. But some compilers (ex. CLANG) can change the writing queue (xHOST_OFFSET2 first, xHOST_OFFSET1 second) b

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

2024-07-30 Thread Nikita Novikov
When we are trying to write 64-bit value in 32-bit system, the value in HTIF device divides on 2 separate 32-bit parts. So device expects write to xHOST_OFFSET1 first, then to xHOST_OFFSET2. But some compilers (ex. CLANG) can change the writing queue (xHOST_OFFSET2 first, xHOST_OFFSET1 second) b