From a852ec11fb83eb111c144e3a120702b7c6611c51 Mon Sep 17 00:00:00 2001 From: Clo91eaf Date: Wed, 15 May 2024 21:32:47 +0800 Subject: [PATCH] [exception] do not open environment call exception --- src/exception.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exception.rs b/src/exception.rs index 9a4c0e7..66bc7cf 100644 --- a/src/exception.rs +++ b/src/exception.rs @@ -214,8 +214,8 @@ impl Exception { | Exception::StoreAMOAccessFault => Trap::Fatal, Exception::EnvironmentCallFromUMode | Exception::EnvironmentCallFromSMode - | Exception::EnvironmentCallFromMMode => Trap::Requested, - // | Exception::EnvironmentCallFromMMode => Trap::Fatal, + // | Exception::EnvironmentCallFromMMode => Trap::Requested, + | Exception::EnvironmentCallFromMMode => Trap::Fatal, Exception::InstructionPageFault(_) | Exception::LoadPageFault(_) | Exception::StoreAMOPageFault(_) => { Trap::Invisible }