aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/i2c-echo.c
diff options
context:
space:
mode:
authorNick Briggs <nicholas.h.briggs@gmail.com>2024-02-01 10:11:17 -0800
committerJason Wang <jasowang@redhat.com>2024-03-12 19:28:32 +0800
commit6a5287ce80470bb8df95901d73ee779a64e70c3a (patch)
treeaba84c2c843f89fce97bdbf8e37fcb803fbb0adf /hw/misc/i2c-echo.c
parent4cadf10234989861398e19f3bb441d3861f3bb7c (diff)
Avoid unaligned fetch in ladr_match()
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 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2143 Signed-off-by: Nick Briggs <nicholas.h.briggs@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/misc/i2c-echo.c')
0 files changed, 0 insertions, 0 deletions