diff options
| author | shuffle2 <godisgovernment@gmail.com> | 2014-09-03 03:37:46 -0700 |
|---|---|---|
| committer | shuffle2 <godisgovernment@gmail.com> | 2014-09-03 03:37:46 -0700 |
| commit | b583879c2a5b705df1bd7e4ad4450c2d6439be78 (patch) | |
| tree | 082bbe241d5bf9a407a22c7db00e4cd033e5962d /Source | |
| parent | 7a01effe94808176d55b7b9928cf3ebf8766d4c4 (diff) | |
| parent | cee71afce5bf452a8b201fa4b33f9ab8d9c89b96 (diff) | |
Merge pull request #944 from delroth/x64emittertest
x64EmitterTest: Fake support for all CPU extensions
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/UnitTests/Common/x64EmitterTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/UnitTests/Common/x64EmitterTest.cpp b/Source/UnitTests/Common/x64EmitterTest.cpp index 2752e0a50a..fc47d5a20c 100644 --- a/Source/UnitTests/Common/x64EmitterTest.cpp +++ b/Source/UnitTests/Common/x64EmitterTest.cpp @@ -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 @@ -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(); |
