dyncom: Switch the app and system cores into the correct mode at initialization

This commit is contained in:
Lioncash 2015-02-12 15:11:39 -05:00
parent c3211c9c80
commit b7fac494cd
5 changed files with 21 additions and 17 deletions

View file

@ -56,11 +56,10 @@ void Stop() {
/// Initialize the core
int Init() {
LOG_DEBUG(Core, "initialized OK");
g_sys_core = new ARM_DynCom();
g_app_core = new ARM_DynCom();
g_sys_core = new ARM_DynCom(USER32MODE);
g_app_core = new ARM_DynCom(USER32MODE);
LOG_DEBUG(Core, "Initialized OK");
return 0;
}
@ -68,7 +67,7 @@ void Shutdown() {
delete g_app_core;
delete g_sys_core;
LOG_DEBUG(Core, "shutdown OK");
LOG_DEBUG(Core, "Shutdown OK");
}
} // namespace