]> git.ipfire.org Git - thirdparty/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)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 15 Jan 2025 12:53:53 +0000 (15:53 +0300)
commit48876bfc471ec02e5edcc935ba93e14426d891ab
tree72cdd3a10aab26ad7d6e780c9840cc92d6957837
parentbb6940dbad20a90515fd53f901b370251e7a25df
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>
(cherry picked from commit 4572dacc33e232a7c951ba7ba7a20887fad29e71)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ufs/ufs.c
tests/qtest/ufs-test.c