Re: [PATCH] Avoid unaligned fetch in ladr_match()

2024-02-01 Thread Peter Maydell
On Thu, 1 Feb 2024 at 18:11, Nick Briggs wrote: > > There is no guarantee that the PCNetState is allocated such that > csr[8] is allocated on an 8-byte boundary. Since not all hosts are > capable of unaligned fetches the 16-bit elements need to be fetched > individually to avoid a potential fault

[PATCH] Avoid unaligned fetch in ladr_match()

2024-02-01 Thread Nick Briggs
There is no guarantee that the PCNetState is allocated such that csr[8] is allocated on an 8-byte boundary. Since not all hosts are capable of unaligned fetches the 16-bit elements need to be fetched individually to avoid a potential fault. Closes issue #2143 Signed-off-by: Nick Briggs --- hw/