Initial libjit skeleton.
Not currently generating instructions, but most of the flow is right up to that point. A lot of work required to refactor the emitter, but wanted to get this checked in.
This commit is contained in:
@@ -46,7 +46,7 @@ int Run::Setup() {
|
||||
xe_zero_struct(&pal_options, sizeof(pal_options));
|
||||
XEEXPECTZERO(xe_pal_init(pal_options));
|
||||
|
||||
//backend_ = shared_ptr<Backend>(new xe::cpu::llvmbe::LLVMBackend());
|
||||
backend_ = shared_ptr<Backend>(new xe::cpu::libjit::LibjitBackend());
|
||||
|
||||
debugger_ = shared_ptr<Debugger>(new Debugger());
|
||||
|
||||
@@ -116,8 +116,6 @@ int xenia_run(int argc, xechar_t **argv) {
|
||||
result_code = run->Setup();
|
||||
XEEXPECTZERO(result_code);
|
||||
|
||||
//xe_module_dump(run->module);
|
||||
|
||||
run->Launch(path);
|
||||
|
||||
result_code = 0;
|
||||
|
||||
@@ -120,7 +120,7 @@ int run_test(string& src_file_path) {
|
||||
memory = xe_memory_create(memory_options);
|
||||
XEEXPECTNOTNULL(memory);
|
||||
|
||||
//backend = shared_ptr<Backend>(new xe::cpu::llvmbe::LLVMBackend());
|
||||
backend_ = shared_ptr<Backend>(new xe::cpu::libjit::LibjitBackend());
|
||||
|
||||
processor = shared_ptr<Processor>(new Processor(memory, backend));
|
||||
XEEXPECTZERO(processor->Setup());
|
||||
|
||||
Reference in New Issue
Block a user