Removing win32 code from X64CodeCache.

Fixes #349.
This commit is contained in:
Ben Vanik
2015-07-19 10:33:00 -07:00
parent edfa3f3fc0
commit 352bae30cb
5 changed files with 326 additions and 228 deletions

View File

@@ -12,6 +12,8 @@
#include <gflags/gflags.h>
#include <memory>
#include "xenia/cpu/backend/backend.h"
DECLARE_bool(enable_haswell_instructions);
@@ -36,7 +38,7 @@ class X64Backend : public Backend {
X64Backend(Processor* processor);
~X64Backend() override;
X64CodeCache* code_cache() const { return code_cache_; }
X64CodeCache* code_cache() const { return code_cache_.get(); }
uint32_t emitter_data() const { return emitter_data_; }
// Call a generated function, saving all stack parameters.
@@ -55,7 +57,7 @@ class X64Backend : public Backend {
std::unique_ptr<Assembler> CreateAssembler() override;
private:
X64CodeCache* code_cache_;
std::unique_ptr<X64CodeCache> code_cache_;
uint32_t emitter_data_;