summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/x64EmitterTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/UnitTests/Common/x64EmitterTest.cpp')
-rw-r--r--Source/UnitTests/Common/x64EmitterTest.cpp3
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();