x64EmitterTest: Fake support for all CPU extensions

This commit is contained in:
Pierre Bourdon 2014-09-03 02:26:02 +02:00
parent 031beca9c9
commit cee71afce5
1 changed files with 3 additions and 0 deletions

View File

@ -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();