diff options
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h new file mode 100644 index 000000000..bae9f3e3d --- /dev/null +++ b/src/core/core.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "arm/arm_interface.h" | ||
| 8 | #include "arm/interpreter/armdefs.h" | ||
| 9 | |||
| 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 11 | |||
| 12 | namespace Core { | ||
| 13 | |||
| 14 | extern ARM_Interface* g_app_core; ///< ARM11 application core | ||
| 15 | extern ARM_Interface* g_sys_core; ///< ARM11 system (OS) core | ||
| 16 | |||
| 17 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 18 | |||
| 19 | /// Start the core | ||
| 20 | void Start(); | ||
| 21 | |||
| 22 | /// Run the core CPU loop | ||
| 23 | void RunLoop(); | ||
| 24 | |||
| 25 | /// Step the CPU one instruction | ||
| 26 | void SingleStep(); | ||
| 27 | |||
| 28 | /// Halt the core | ||
| 29 | void Halt(const char *msg); | ||
| 30 | |||
| 31 | /// Kill the core | ||
| 32 | void Stop(); | ||
| 33 | |||
| 34 | /// Initialize the core | ||
| 35 | int Init(); | ||
| 36 | |||
| 37 | /// Shutdown the core | ||
| 38 | void Shutdown(); | ||
| 39 | |||
| 40 | } // namespace | ||