lib: Don't check MIDELEG and MEDELEG at end of delegate_traps()
authorAnup Patel <anup.patel@wdc.com>
Tue, 18 Feb 2020 06:07:16 +0000 (11:37 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 19 Feb 2020 04:28:45 +0000 (09:58 +0530)
commitbc874e34cecbd1e024ae7be4ec2f34d9cb1fbecb
tree4c373ca6f11d0d6f9f2fd9032ee8b90190563cb5
parentc66543d049d33b94f1915babaed6eb1f90e05f78
lib: Don't check MIDELEG and MEDELEG at end of delegate_traps()

The MIDELEG and MEDELEG CSR checks at end of delegate_traps() were
added for initial bring-up on SiFive Unleashed and QEMU. These
checks are not required any more and in-future these checks can
cause failures because some of the MIDELEG/MEDELEG bits will be
hard-wired to 0 or 1.

For related discussion, refer github issue:
https://github.com/riscv/opensbi/issues/157

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_hart.c