include: Rename ECALL defines to match latest RISC-V spec

We rename CAUSE_HYPERVISOR_ECALL to CAUSE_SUPERVISOR_ECALL and
CAUSE_SUPERVISOR_ECALL to CAUSE_VIRTUAL_SUPERVISOR_ECALL so that
it matches latest RISC-V privilege spec.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
Anup Patel
2020-09-01 17:54:29 +05:30
committed by Anup Patel
parent dcb10c0056
commit bef63d6848
3 changed files with 4 additions and 4 deletions

View File

@@ -251,7 +251,7 @@ void sbi_trap_handler(struct sbi_trap_regs *regs)
rc = sbi_misaligned_store_handler(mtval, mtval2, mtinst, regs);
msg = "misaligned store handler failed";
break;
case CAUSE_HYPERVISOR_ECALL:
case CAUSE_SUPERVISOR_ECALL:
rc = sbi_ecall_handler(regs);
msg = "ecall handler failed";
break;