From 04aeecabcfc36a5f61bf6ce22014050be29ec5c2 Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Sun, 27 Aug 2023 08:26:31 -0700 Subject: [PATCH] arm: Do not try to access null page table. (#6930) --- src/core/arm/dynarmic/arm_dynarmic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp index c433952965..4ec6752512 100644 --- a/src/core/arm/dynarmic/arm_dynarmic.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic.cpp @@ -365,7 +365,9 @@ void ARM_Dynarmic::ServeBreak() { std::unique_ptr ARM_Dynarmic::MakeJit() { Dynarmic::A32::UserConfig config; config.callbacks = cb.get(); - config.page_table = ¤t_page_table->GetPointerArray(); + if (current_page_table) { + config.page_table = ¤t_page_table->GetPointerArray(); + } config.coprocessors[15] = std::make_shared(cp15_state); config.define_unpredictable_behaviour = true;