Dump the error info only when there is an error. If the gcdALLOC_ON_FAULT is not enabled, still need to check
the HW status to decide whether to dump the exception info or not
Signed-off-by: Ella Feng <ella.feng@nxp.com>
Reviewed-by: Xianzhong Li <xianzhong.li@nxp.com>
#if gcdALLOC_ON_FAULT
status = gckHARDWARE_HandleFault(Event->kernel->hardware);
- if (gcmIS_ERROR(status))
#endif
+ if (gcmIS_ERROR(status))
{
/* Dump error is fault can't be handle. */
gckHARDWARE_DumpMMUException(Event->kernel->hardware);