OE currently only supports exception handling in hardware mode (as the implementation is SGX specific).
During development/testing, we heavily rely on simulation mode, and therefore want to avoid big divergences between the two modes. Exception handling is an important enough feature that we require it in simulation mode.
If OE doesn't handle exceptions in simulation mode, we would have to implement our own mechanism for that, entirely bypassing the OE exception handling API when in simulation mode. (While the implementation of enclave exceptions in simulation mode would be quite different from hardware mode, it should also be simpler.)
OE currently only supports exception handling in hardware mode (as the implementation is SGX specific).
During development/testing, we heavily rely on simulation mode, and therefore want to avoid big divergences between the two modes. Exception handling is an important enough feature that we require it in simulation mode.
If OE doesn't handle exceptions in simulation mode, we would have to implement our own mechanism for that, entirely bypassing the OE exception handling API when in simulation mode. (While the implementation of enclave exceptions in simulation mode would be quite different from hardware mode, it should also be simpler.)