Include host CPU information in x64 emitter

Conflicts:
	src/xenia/cpu/backend/x64/x64_emitter.cc
This commit is contained in:
Dr. Chat 2015-05-01 15:52:09 -05:00
parent e3220f7ae6
commit cad6ca6148
2 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,8 @@ X64Emitter::X64Emitter(X64Backend* backend, XbyakAllocator* allocator)
current_instr_(0),
source_map_count_(0),
stack_size_(0),
trace_flags_(0) {}
trace_flags_(0),
cpu_() {}
X64Emitter::~X64Emitter() {}

View File

@ -11,6 +11,7 @@
#define XENIA_BACKEND_X64_X64_EMITTER_H_
#include "third_party/xbyak/xbyak/xbyak.h"
#include "third_party/xbyak/xbyak/xbyak_util.h"
#include "xenia/base/arena.h"
#include "xenia/cpu/hir/value.h"
@ -102,6 +103,7 @@ class X64Emitter : public Xbyak::CodeGenerator {
Runtime* runtime() const { return runtime_; }
X64Backend* backend() const { return backend_; }
const Xbyak::util::Cpu *cpu() const { return &cpu_; }
int Initialize();
@ -191,6 +193,7 @@ class X64Emitter : public Xbyak::CodeGenerator {
X64Backend* backend_;
X64CodeCache* code_cache_;
XbyakAllocator* allocator_;
Xbyak::util::Cpu cpu_; // Host CPU info
hir::Instr* current_instr_;