diff --git a/cpu/ppc/ppcemu.h b/cpu/ppc/ppcemu.h index 72cb444..816af8d 100644 --- a/cpu/ppc/ppcemu.h +++ b/cpu/ppc/ppcemu.h @@ -44,6 +44,14 @@ along with this program. If not, see . //#define CPU_PROFILING // enable CPU profiling +/** type of compiler used during execution */ +enum EXEC_MODE:uint32_t { + interpreter = 0, + debugger = 1, + threaded_int = 2, + jit = 3 +}; + enum endian_switch { big_end = 0, little_end = 1 }; typedef void (*PPCOpcode)(void); diff --git a/main.cpp b/main.cpp index ee6d2cd..5b9a18a 100644 --- a/main.cpp +++ b/main.cpp @@ -70,16 +70,8 @@ static string appDescription = string( ); int main(int argc, char** argv) { - /* - Execution Type: - 0 = Realtime (Interpreter) - 1 = Realtime (Debugger) - 2 = Recompiler (to-do) - The rest will be decided later - */ - - uint32_t execution_mode = 0; + uint32_t execution_mode = interpreter; CLI::App app(appDescription); app.allow_windows_style_options(); /* we want Windows-style options */ @@ -206,10 +198,10 @@ int main(int argc, char** argv) { }); switch (execution_mode) { - case 0: + case interpreter: ppc_exec(); break; - case 1: + case debugger: enter_debugger(); break; default: