mw_debug: Display terminated status when stopping

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
cache-tlb-parameters-2
Paul Mackerras 4 years ago
parent 6baf3b519f
commit f14e731ec6

@ -390,9 +390,11 @@ static void core_status(void)
statstr2 = " (restarting?)"; statstr2 = " (restarting?)";
else if (stat & DBG_CORE_STAT_TERM) else if (stat & DBG_CORE_STAT_TERM)
statstr2 = " (terminated)"; statstr2 = " (terminated)";
} else if (stat & DBG_CORE_STAT_STOPPING) } else if (stat & DBG_CORE_STAT_STOPPING) {
statstr = "stopping"; statstr = "stopping";
else if (stat & DBG_CORE_STAT_TERM) if (stat & DBG_CORE_STAT_TERM)
statstr2 = " (terminated)";
} else if (stat & DBG_CORE_STAT_TERM)
statstr = "odd state (TERM but no STOP)"; statstr = "odd state (TERM but no STOP)";
printf("Core: %s%s\n", statstr, statstr2); printf("Core: %s%s\n", statstr, statstr2);
printf(" NIA: %016" PRIx64 "\n", nia); printf(" NIA: %016" PRIx64 "\n", nia);

Loading…
Cancel
Save