diff --git a/Source/Core/Core/DSP/DSPCore.cpp b/Source/Core/Core/DSP/DSPCore.cpp index 4495cf9676..f0dc4419cc 100644 --- a/Source/Core/Core/DSP/DSPCore.cpp +++ b/Source/Core/Core/DSP/DSPCore.cpp @@ -202,9 +202,9 @@ void DSPCore_Reset() Analyzer::Analyze(); } -void DSPCore_SetException(u8 level) +void DSPCore_SetException(ExceptionType exception) { - g_dsp.exceptions |= 1 << level; + g_dsp.exceptions |= 1 << exception; } // Notify that an external interrupt is pending (used by thread mode) diff --git a/Source/Core/Core/DSP/DSPCore.h b/Source/Core/Core/DSP/DSPCore.h index 712bedfc2d..d838de0b45 100644 --- a/Source/Core/Core/DSP/DSPCore.h +++ b/Source/Core/Core/DSP/DSPCore.h @@ -208,7 +208,7 @@ enum : u16 }; // Exception vectors -enum : int +enum ExceptionType : int { EXP_STOVF = 1, // 0x0002 stack under/over flow EXP_2 = 2, // 0x0004 @@ -356,7 +356,7 @@ void DSPCore_CheckExceptions(); void DSPCore_SetExternalInterrupt(bool val); // sets a flag in the pending exception register. -void DSPCore_SetException(u8 level); +void DSPCore_SetException(ExceptionType exception); enum class State {