Jit: move constants out of class

This fixes a linking issues on debug builds.
This commit is contained in:
degasus 2014-12-17 20:26:44 +01:00
parent d9e2f51900
commit 5f322cc9e8
2 changed files with 7 additions and 9 deletions

View File

@ -24,8 +24,6 @@
using namespace ArmGen; using namespace ArmGen;
static int CODE_SIZE = 1024*1024*32;
void JitArm::Init() void JitArm::Init()
{ {
AllocCodeSpace(CODE_SIZE); AllocCodeSpace(CODE_SIZE);

View File

@ -47,17 +47,17 @@ public:
void Shutdown() { FreeCodeSpace(); m_enabled = false; } void Shutdown() { FreeCodeSpace(); m_enabled = false; }
}; };
static const int CODE_SIZE = 1024 * 1024 * 32;
// a bit of a hack; the MMU results in a vast amount more code ending up in the far cache,
// mostly exception handling, so give it a whole bunch more space if the MMU is on.
static const int FARCODE_SIZE = 1024 * 1024 * 8;
static const int FARCODE_SIZE_MMU = 1024 * 1024 * 48;
// Like XCodeBlock but has some utilities for memory access. // Like XCodeBlock but has some utilities for memory access.
class EmuCodeBlock : public Gen::X64CodeBlock class EmuCodeBlock : public Gen::X64CodeBlock
{ {
public: public:
static const int CODE_SIZE = 1024 * 1024 * 32;
// a bit of a hack; the MMU results in a vast amount more code ending up in the far cache,
// mostly exception handling, so give it a whole bunch more space if the MMU is on.
static const int FARCODE_SIZE = 1024 * 1024 * 8;
static const int FARCODE_SIZE_MMU = 1024 * 1024 * 48;
FarCodeCache farcode; FarCodeCache farcode;
u8* nearcode; // Backed up when we switch to far code. u8* nearcode; // Backed up when we switch to far code.