Include host CPU information in x64 emitter
Conflicts: src/xenia/cpu/backend/x64/x64_emitter.cc
This commit is contained in:
parent
e3220f7ae6
commit
cad6ca6148
|
@ -67,7 +67,8 @@ X64Emitter::X64Emitter(X64Backend* backend, XbyakAllocator* allocator)
|
||||||
current_instr_(0),
|
current_instr_(0),
|
||||||
source_map_count_(0),
|
source_map_count_(0),
|
||||||
stack_size_(0),
|
stack_size_(0),
|
||||||
trace_flags_(0) {}
|
trace_flags_(0),
|
||||||
|
cpu_() {}
|
||||||
|
|
||||||
X64Emitter::~X64Emitter() {}
|
X64Emitter::~X64Emitter() {}
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#define XENIA_BACKEND_X64_X64_EMITTER_H_
|
#define XENIA_BACKEND_X64_X64_EMITTER_H_
|
||||||
|
|
||||||
#include "third_party/xbyak/xbyak/xbyak.h"
|
#include "third_party/xbyak/xbyak/xbyak.h"
|
||||||
|
#include "third_party/xbyak/xbyak/xbyak_util.h"
|
||||||
|
|
||||||
#include "xenia/base/arena.h"
|
#include "xenia/base/arena.h"
|
||||||
#include "xenia/cpu/hir/value.h"
|
#include "xenia/cpu/hir/value.h"
|
||||||
|
@ -102,6 +103,7 @@ class X64Emitter : public Xbyak::CodeGenerator {
|
||||||
|
|
||||||
Runtime* runtime() const { return runtime_; }
|
Runtime* runtime() const { return runtime_; }
|
||||||
X64Backend* backend() const { return backend_; }
|
X64Backend* backend() const { return backend_; }
|
||||||
|
const Xbyak::util::Cpu *cpu() const { return &cpu_; }
|
||||||
|
|
||||||
int Initialize();
|
int Initialize();
|
||||||
|
|
||||||
|
@ -191,6 +193,7 @@ class X64Emitter : public Xbyak::CodeGenerator {
|
||||||
X64Backend* backend_;
|
X64Backend* backend_;
|
||||||
X64CodeCache* code_cache_;
|
X64CodeCache* code_cache_;
|
||||||
XbyakAllocator* allocator_;
|
XbyakAllocator* allocator_;
|
||||||
|
Xbyak::util::Cpu cpu_; // Host CPU info
|
||||||
|
|
||||||
hir::Instr* current_instr_;
|
hir::Instr* current_instr_;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue