Slight clean-up for execution type

This commit is contained in:
dingusdev 2023-06-19 22:36:27 -07:00
parent d11d693b52
commit 4364c89fd4
2 changed files with 11 additions and 11 deletions

View File

@ -44,6 +44,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
//#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);

View File

@ -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: