diff --git a/libraries/libmesosphere/source/arch/arm64/kern_k_thread_context.cpp b/libraries/libmesosphere/source/arch/arm64/kern_k_thread_context.cpp index 2622fe355..1fb245dd8 100644 --- a/libraries/libmesosphere/source/arch/arm64/kern_k_thread_context.cpp +++ b/libraries/libmesosphere/source/arch/arm64/kern_k_thread_context.cpp @@ -251,7 +251,7 @@ namespace ams::kern::arch::arm64 { } else { /* Set special registers. */ out->pc = static_cast(e_ctx->pc); - out->pstate = e_ctx->psr & 0xFF0FFE20; + out->pstate = e_ctx->psr & El0PsrMask; /* Get the thread's general purpose registers. */ for (size_t i = 0; i < 15; ++i) {