bench1: Set power_off_reason.

This commit is contained in:
dingusdev 2024-12-17 18:46:20 -07:00
parent ee45291533
commit 240ec95a74
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#if defined(PPC_BENCHMARKS)
void ppc_exception_handler(Except_Type exception_type, uint32_t srr1_bits) {
power_on = false;
power_off_reason = po_benchmark_exception;
}
#endif

View File

@ -317,6 +317,7 @@ enum Po_Cause : int {
po_enter_debugger,
po_entered_debugger,
po_signal_interrupt,
po_benchmark_exception
};
extern bool power_on;