Skip to content

Commit

Permalink
Merge pull request #944 from delroth/x64emittertest
Browse files Browse the repository at this point in the history
x64EmitterTest: Fake support for all CPU extensions
  • Loading branch information
shuffle2 committed Sep 3, 2014
2 parents 7a01eff + cee71af commit b583879
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/UnitTests/Common/x64EmitterTest.cpp
Expand Up @@ -17,6 +17,7 @@
// can get away with simply undef'ing TEST. Phew.
#undef TEST

#include "Common/CPUDetect.h"
#include "Common/x64Emitter.h"

namespace Gen
Expand Down Expand Up @@ -90,6 +91,8 @@ class x64EmitterTest : public testing::Test
protected:
void SetUp() override
{
memset(&cpu_info, 0xFF, sizeof (cpu_info));

emitter.reset(new X64CodeBlock());
emitter->AllocCodeSpace(4096);
code_buffer = emitter->GetWritableCodePtr();
Expand Down

0 comments on commit b583879

Please sign in to comment.