]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/ufs: Adjust value to match CPU's endian format
authorKeoseong Park <keosung.park@samsung.com>
Tue, 7 Jan 2025 08:43:56 +0000 (17:43 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Jan 2025 16:16:04 +0000 (17:16 +0100)
commit4572dacc33e232a7c951ba7ba7a20887fad29e71
tree5ecafb83d59a5ac063d3459b8dc77c5f00ac49eb
parentc407eef162f765dd83d45e048585731be41a66fc
hw/ufs: Adjust value to match CPU's endian format

In ufs_write_attr_value(), the value parameter is handled in the CPU's
endian format but provided in big-endian format by the caller. Thus, it
is converted to the CPU's endian format. The related test code is also
fixed to reflect this change.

Fixes: 7c85332a2b3e ("hw/ufs: minor bug fixes related to ufs-test")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Keoseong Park <keosung.park@samsung.com>
Reviewed-by: Jeuk Kim <jeuk20.kim@samsung.com>
Message-ID: <20250107084356epcms2p2af4d86432174d76ea57336933e46b4c3@epcms2p2>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/ufs/ufs.c
tests/qtest/ufs-test.c