Skip to content

Commit

Permalink
fix(riscv/sbi): return not supported as error (not value)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Martins <[email protected]>
  • Loading branch information
josecm authored and DavidMCerdeira committed Oct 18, 2024
1 parent 5a67309 commit e09ddf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/riscv/sbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e09ddf3

Please sign in to comment.