OSDN Git Service

hw/misc: sifive_u_otp: Use error_report() when block operation fails
authorBin Meng <bin.meng@windriver.com>
Tue, 19 Jan 2021 03:23:05 +0000 (11:23 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 4 Mar 2021 14:43:29 +0000 (09:43 -0500)
commita033d8008d1b2b35332597eacc92a1a4b14121ad
tree5f52a27f7a90c24c586bf7708f2ca5006493b9d7
parent6f03770daccaffc39a4ce61854ab126020374112
hw/misc: sifive_u_otp: Use error_report() when block operation fails

At present when blk_pread() / blk_pwrite() fails, a guest error
is logged, but this is not really a guest error. Change to use
error_report() instead.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 1611026585-29971-1-git-send-email-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/misc/sifive_u_otp.c