From e09ddf36f1c3f3f7999195095675ab019475c52e Mon Sep 17 00:00:00 2001 From: Jose Martins Date: Thu, 10 Oct 2024 11:56:15 +0100 Subject: [PATCH] fix(riscv/sbi): return not supported as error (not value) Signed-off-by: Jose Martins --- src/arch/riscv/sbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/riscv/sbi.c b/src/arch/riscv/sbi.c index a6699a2c..103a07fc 100644 --- a/src/arch/riscv/sbi.c +++ b/src/arch/riscv/sbi.c @@ -436,7 +436,7 @@ size_t sbi_vs_handler() break; default: WARNING("guest issued unsupport sbi extension call (%d)", extid); - ret.value = SBI_ERR_NOT_SUPPORTED; + ret.error = SBI_ERR_NOT_SUPPORTED; } vcpu_writereg(cpu()->vcpu, REG_A0, (unsigned long)ret.error);