Skip to content

Commit

Permalink
Merge pull request #1710 from degasus/jit-linking-fix
Browse files Browse the repository at this point in the history
Jit: move constants out of class
  • Loading branch information
skidau committed Dec 17, 2014
2 parents d9e2f51 + 5f322cc commit 418e006
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Source/Core/Core/PowerPC/JitArm32/Jit.cpp
Expand Up @@ -24,8 +24,6 @@

using namespace ArmGen;

static int CODE_SIZE = 1024*1024*32;

void JitArm::Init()
{
AllocCodeSpace(CODE_SIZE);
Expand Down
14 changes: 7 additions & 7 deletions Source/Core/Core/PowerPC/JitCommon/Jit_Util.h
Expand Up @@ -47,17 +47,17 @@ class FarCodeCache : public Gen::X64CodeBlock
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.
class EmuCodeBlock : public Gen::X64CodeBlock
{
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;
u8* nearcode; // Backed up when we switch to far code.

Expand Down

0 comments on commit 418e006

Please sign in to comment.