mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-22 15:29:58 +00:00
Slight clean-up for execution type
This commit is contained in:
parent
d11d693b52
commit
4364c89fd4
@ -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);
|
||||
|
14
main.cpp
14
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:
|
||||
|
Loading…
Reference in New Issue
Block a user