Fix spelling.

This commit is contained in:
joevt 2023-08-07 22:47:26 -07:00 committed by Maxim Poliakovski
parent 170a9d78e7
commit 5b366e592c
2 changed files with 11 additions and 11 deletions

View File

@ -108,7 +108,7 @@ void ppc_exception_handler(Except_Type exception_type, uint32_t srr1_bits) {
break; break;
default: default:
ABORT_F("Unknown exception occured: %X\n", (unsigned)exception_type); ABORT_F("Unknown exception occurred: %X\n", (unsigned)exception_type);
break; break;
} }
@ -142,11 +142,11 @@ void ppc_exception_handler(Except_Type exception_type, uint32_t srr1_bits) {
switch (exception_type) { switch (exception_type) {
case Except_Type::EXC_SYSTEM_RESET: case Except_Type::EXC_SYSTEM_RESET:
exc_descriptor = "System reset exception occured"; exc_descriptor = "System reset exception occurred";
break; break;
case Except_Type::EXC_MACHINE_CHECK: case Except_Type::EXC_MACHINE_CHECK:
exc_descriptor = "Machine check exception occured"; exc_descriptor = "Machine check exception occurred";
break; break;
case Except_Type::EXC_DSI: case Except_Type::EXC_DSI:
@ -164,31 +164,31 @@ void ppc_exception_handler(Except_Type exception_type, uint32_t srr1_bits) {
break; break;
case Except_Type::EXC_EXT_INT: case Except_Type::EXC_EXT_INT:
exc_descriptor = "External interrupt exception occured"; exc_descriptor = "External interrupt exception occurred";
break; break;
case Except_Type::EXC_ALIGNMENT: case Except_Type::EXC_ALIGNMENT:
exc_descriptor = "Alignment exception occured"; exc_descriptor = "Alignment exception occurred";
break; break;
case Except_Type::EXC_PROGRAM: case Except_Type::EXC_PROGRAM:
exc_descriptor = "Program exception occured"; exc_descriptor = "Program exception occurred";
break; break;
case Except_Type::EXC_NO_FPU: case Except_Type::EXC_NO_FPU:
exc_descriptor = "Floating-Point unavailable exception occured"; exc_descriptor = "Floating-Point unavailable exception occurred";
break; break;
case Except_Type::EXC_DECR: case Except_Type::EXC_DECR:
exc_descriptor = "Decrementer exception occured"; exc_descriptor = "Decrementer exception occurred";
break; break;
case Except_Type::EXC_SYSCALL: case Except_Type::EXC_SYSCALL:
exc_descriptor = "Syscall exception occured"; exc_descriptor = "Syscall exception occurred";
break; break;
case Except_Type::EXC_TRACE: case Except_Type::EXC_TRACE:
exc_descriptor = "Trace exception occured"; exc_descriptor = "Trace exception occurred";
break; break;
} }

View File

@ -32,7 +32,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <loguru.hpp> #include <loguru.hpp>
#include <stdexcept> #include <stdexcept>
/* pointer to exception handler to be called when a MMU exception is occured. */ /* pointer to exception handler to be called when a MMU exception is occurred. */
void (*mmu_exception_handler)(Except_Type exception_type, uint32_t srr1_bits); void (*mmu_exception_handler)(Except_Type exception_type, uint32_t srr1_bits);
/* pointers to BAT update functions. */ /* pointers to BAT update functions. */