diff options
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/core/core.h b/src/core/core.h index ecd58a73a..2f5e8bc6b 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -4,8 +4,9 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "core/arm/arm_interface.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/arm/skyeye_common/armdefs.h" | 8 | |
| 9 | class ARM_Interface; | ||
| 9 | 10 | ||
| 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 11 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 11 | 12 | ||
| @@ -16,6 +17,21 @@ enum CPUCore { | |||
| 16 | CPU_OldInterpreter, | 17 | CPU_OldInterpreter, |
| 17 | }; | 18 | }; |
| 18 | 19 | ||
| 20 | struct ThreadContext { | ||
| 21 | u32 cpu_registers[13]; | ||
| 22 | u32 sp; | ||
| 23 | u32 lr; | ||
| 24 | u32 pc; | ||
| 25 | u32 cpsr; | ||
| 26 | u32 fpu_registers[32]; | ||
| 27 | u32 fpscr; | ||
| 28 | u32 fpexc; | ||
| 29 | |||
| 30 | // These are not part of native ThreadContext, but needed by emu | ||
| 31 | u32 reg_15; | ||
| 32 | u32 mode; | ||
| 33 | }; | ||
| 34 | |||
| 19 | extern ARM_Interface* g_app_core; ///< ARM11 application core | 35 | extern ARM_Interface* g_app_core; ///< ARM11 application core |
| 20 | extern ARM_Interface* g_sys_core; ///< ARM11 system (OS) core | 36 | extern ARM_Interface* g_sys_core; ///< ARM11 system (OS) core |
| 21 | 37 | ||