Merge pull request #944 from delroth/x64emittertest
x64EmitterTest: Fake support for all CPU extensions
This commit is contained in:
commit
b583879c2a
|
@ -17,6 +17,7 @@
|
||||||
// can get away with simply undef'ing TEST. Phew.
|
// can get away with simply undef'ing TEST. Phew.
|
||||||
#undef TEST
|
#undef TEST
|
||||||
|
|
||||||
|
#include "Common/CPUDetect.h"
|
||||||
#include "Common/x64Emitter.h"
|
#include "Common/x64Emitter.h"
|
||||||
|
|
||||||
namespace Gen
|
namespace Gen
|
||||||
|
@ -90,6 +91,8 @@ class x64EmitterTest : public testing::Test
|
||||||
protected:
|
protected:
|
||||||
void SetUp() override
|
void SetUp() override
|
||||||
{
|
{
|
||||||
|
memset(&cpu_info, 0xFF, sizeof (cpu_info));
|
||||||
|
|
||||||
emitter.reset(new X64CodeBlock());
|
emitter.reset(new X64CodeBlock());
|
||||||
emitter->AllocCodeSpace(4096);
|
emitter->AllocCodeSpace(4096);
|
||||||
code_buffer = emitter->GetWritableCodePtr();
|
code_buffer = emitter->GetWritableCodePtr();
|
||||||
|
|
Loading…
Reference in New Issue