summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-09-15 20:14:18 -0700
committerGitHub <noreply@github.com>2016-09-15 20:14:18 -0700
commitf196924dddb68f4e47ab6da36552840f82616b90 (patch)
treebb57f41d9d26c4a75059f28165acaff88cfde652 /src/core/core.cpp
parent81bb315839a95998fe20fdcdb5cee0f161335185 (diff)
parent1b95f61d82da17f691cc70cc108a08bef0831abd (diff)
Merge pull request #2042 from bunnei/dynarmic
Interface ARM CPU JIT (Dynarmic)
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index cabab744a..a3834adae 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -6,16 +6,16 @@
#include "common/logging/log.h"
-#include "core/core.h"
-#include "core/core_timing.h"
-
#include "core/arm/arm_interface.h"
+#include "core/arm/dynarmic/arm_dynarmic.h"
#include "core/arm/dyncom/arm_dyncom.h"
+#include "core/core.h"
+#include "core/core_timing.h"
+#include "core/gdbstub/gdbstub.h"
#include "core/hle/hle.h"
#include "core/hle/kernel/thread.h"
#include "core/hw/hw.h"
-
-#include "core/gdbstub/gdbstub.h"
+#include "core/settings.h"
namespace Core {
@@ -73,8 +73,13 @@ void Stop() {
/// Initialize the core
void Init() {
- g_sys_core = std::make_unique<ARM_DynCom>(USER32MODE);
- g_app_core = std::make_unique<ARM_DynCom>(USER32MODE);
+ if (Settings::values.use_cpu_jit) {
+ g_sys_core = std::make_unique<ARM_Dynarmic>(USER32MODE);
+ g_app_core = std::make_unique<ARM_Dynarmic>(USER32MODE);
+ } else {
+ g_sys_core = std::make_unique<ARM_DynCom>(USER32MODE);
+ g_app_core = std::make_unique<ARM_DynCom>(USER32MODE);
+ }
LOG_DEBUG(Core, "Initialized OK");
}