diff options
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 2 | ||||
| -rw-r--r-- | src/core/hle/hle.cpp | 1 | ||||
| -rw-r--r-- | src/core/hle/hle.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 1 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 9 | ||||
| -rw-r--r-- | src/core/hle/service/hid_user.cpp | 1 | ||||
| -rw-r--r-- | src/core/hle/svc.cpp | 1 | ||||
| -rw-r--r-- | src/core/hle/svc.h | 15 |
8 files changed, 13 insertions, 19 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 8eb4f252b..a2f51b41b 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | |||
| 9 | #include "core/arm/arm_interface.h" | ||
| 8 | #include "core/mem_map.h" | 10 | #include "core/mem_map.h" |
| 9 | #include "core/hle/hle.h" | 11 | #include "core/hle/hle.h" |
| 10 | 12 | ||
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index 33ac12507..5d77a1458 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include <vector> | 5 | #include <vector> |
| 6 | 6 | ||
| 7 | #include "core/arm/arm_interface.h" | ||
| 7 | #include "core/mem_map.h" | 8 | #include "core/mem_map.h" |
| 8 | #include "core/hle/hle.h" | 9 | #include "core/hle/hle.h" |
| 9 | #include "core/hle/kernel/thread.h" | 10 | #include "core/hle/kernel/thread.h" |
diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h index 59b770f02..3f6f9a4b5 100644 --- a/src/core/hle/hle.h +++ b/src/core/hle/hle.h | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <string> | ||
| 8 | |||
| 7 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 8 | #include "core/core.h" | 10 | #include "core/core.h" |
| 9 | 11 | ||
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 391e833c0..1537702cf 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common.h" | 7 | #include "common/common.h" |
| 8 | 8 | ||
| 9 | #include "core/arm/arm_interface.h" | ||
| 9 | #include "core/core.h" | 10 | #include "core/core.h" |
| 10 | #include "core/hle/kernel/kernel.h" | 11 | #include "core/hle/kernel/kernel.h" |
| 11 | #include "core/hle/kernel/thread.h" | 12 | #include "core/hle/kernel/thread.h" |
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 954bd09a0..3e9ea464d 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "common/common.h" | 10 | #include "common/common.h" |
| 11 | #include "common/thread_queue_list.h" | 11 | #include "common/thread_queue_list.h" |
| 12 | 12 | ||
| 13 | #include "core/arm/arm_interface.h" | ||
| 13 | #include "core/core.h" | 14 | #include "core/core.h" |
| 14 | #include "core/core_timing.h" | 15 | #include "core/core_timing.h" |
| 15 | #include "core/hle/hle.h" | 16 | #include "core/hle/hle.h" |
| @@ -50,7 +51,7 @@ public: | |||
| 50 | return MakeResult<bool>(wait); | 51 | return MakeResult<bool>(wait); |
| 51 | } | 52 | } |
| 52 | 53 | ||
| 53 | ThreadContext context; | 54 | Core::ThreadContext context; |
| 54 | 55 | ||
| 55 | u32 thread_id; | 56 | u32 thread_id; |
| 56 | 57 | ||
| @@ -104,18 +105,18 @@ inline void SetCurrentThread(Thread* t) { | |||
| 104 | } | 105 | } |
| 105 | 106 | ||
| 106 | /// Saves the current CPU context | 107 | /// Saves the current CPU context |
| 107 | void SaveContext(ThreadContext& ctx) { | 108 | void SaveContext(Core::ThreadContext& ctx) { |
| 108 | Core::g_app_core->SaveContext(ctx); | 109 | Core::g_app_core->SaveContext(ctx); |
| 109 | } | 110 | } |
| 110 | 111 | ||
| 111 | /// Loads a CPU context | 112 | /// Loads a CPU context |
| 112 | void LoadContext(ThreadContext& ctx) { | 113 | void LoadContext(Core::ThreadContext& ctx) { |
| 113 | Core::g_app_core->LoadContext(ctx); | 114 | Core::g_app_core->LoadContext(ctx); |
| 114 | } | 115 | } |
| 115 | 116 | ||
| 116 | /// Resets a thread | 117 | /// Resets a thread |
| 117 | void ResetThread(Thread* t, u32 arg, s32 lowest_priority) { | 118 | void ResetThread(Thread* t, u32 arg, s32 lowest_priority) { |
| 118 | memset(&t->context, 0, sizeof(ThreadContext)); | 119 | memset(&t->context, 0, sizeof(Core::ThreadContext)); |
| 119 | 120 | ||
| 120 | t->context.cpu_registers[0] = arg; | 121 | t->context.cpu_registers[0] = arg; |
| 121 | t->context.pc = t->context.reg_15 = t->entry_point; | 122 | t->context.pc = t->context.reg_15 = t->entry_point; |
diff --git a/src/core/hle/service/hid_user.cpp b/src/core/hle/service/hid_user.cpp index 99b0ea5a0..8ef9af9d2 100644 --- a/src/core/hle/service/hid_user.cpp +++ b/src/core/hle/service/hid_user.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include "common/log.h" | 5 | #include "common/log.h" |
| 6 | 6 | ||
| 7 | #include "core/arm/arm_interface.h" | ||
| 7 | #include "core/hle/hle.h" | 8 | #include "core/hle/hle.h" |
| 8 | #include "core/hle/kernel/event.h" | 9 | #include "core/hle/kernel/event.h" |
| 9 | #include "core/hle/kernel/shared_memory.h" | 10 | #include "core/hle/kernel/shared_memory.h" |
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index cdcdea36d..92de442e8 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include "common/string_util.h" | 7 | #include "common/string_util.h" |
| 8 | #include "common/symbols.h" | 8 | #include "common/symbols.h" |
| 9 | 9 | ||
| 10 | #include "core/arm/arm_interface.h" | ||
| 10 | #include "core/mem_map.h" | 11 | #include "core/mem_map.h" |
| 11 | 12 | ||
| 12 | #include "core/hle/kernel/address_arbiter.h" | 13 | #include "core/hle/kernel/address_arbiter.h" |
diff --git a/src/core/hle/svc.h b/src/core/hle/svc.h index ad780818e..5d020a5ba 100644 --- a/src/core/hle/svc.h +++ b/src/core/hle/svc.h | |||
| @@ -20,21 +20,6 @@ struct PageInfo { | |||
| 20 | u32 flags; | 20 | u32 flags; |
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | struct ThreadContext { | ||
| 24 | u32 cpu_registers[13]; | ||
| 25 | u32 sp; | ||
| 26 | u32 lr; | ||
| 27 | u32 pc; | ||
| 28 | u32 cpsr; | ||
| 29 | u32 fpu_registers[32]; | ||
| 30 | u32 fpscr; | ||
| 31 | u32 fpexc; | ||
| 32 | |||
| 33 | // These are not part of native ThreadContext, but needed by emu | ||
| 34 | u32 reg_15; | ||
| 35 | u32 mode; | ||
| 36 | }; | ||
| 37 | |||
| 38 | enum ResetType { | 23 | enum ResetType { |
| 39 | RESETTYPE_ONESHOT, | 24 | RESETTYPE_ONESHOT, |
| 40 | RESETTYPE_STICKY, | 25 | RESETTYPE_STICKY, |