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:
Ben Vanik
2013-05-21 15:36:58 -07:00
parent 94e3e592dd
commit 85804f7415
44 changed files with 5272 additions and 274 deletions

View File

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

View File

@@ -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());