]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/pflash: use ldn_{be,le}_p and stn_{be,le}_p
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 8 Jan 2024 16:08:58 +0000 (17:08 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 20 Jan 2024 10:01:57 +0000 (13:01 +0300)
commit143d230d51a8f125804cb75a9bbc430e91027f61
treefb2d86625cfd5f986e9bbdcb64e47a54e31d6eab
parent731783ff1e7fced41dc857a0e39deadaf8ae2477
hw/pflash: use ldn_{be,le}_p and stn_{be,le}_p

Use the helper functions we have to read/write multi-byte values
in correct byte order.

Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240108160900.104835-3-kraxel@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 5dd58358a57048e5ceabf5c91c0544f4f56afdcd)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/block/pflash_cfi01.c