Fix interrupt and exception delegation
When S mode is not supported, simply clear mideleg and medeleg.
Otherwise, set delegation from M-mode to S-mode, removing the page
fault exceptions as those would not happen in M-mode.
Signed-off-by:
Damien Le Moal <damien.lemoal@wdc.com>
parent
9c183df6
Please register or sign in to comment