If block linking isn't enabled then make sure there isn't a performance hit from getting a block number.

This commit is contained in:
Ryan Houdek 2013-12-21 19:24:25 -06:00 committed by Ryan Houdek
parent c5b8c65ddc
commit d2a90e6eab
4 changed files with 8 additions and 8 deletions

View File

@ -290,8 +290,8 @@ void Jit64::WriteExit(u32 destination)
linkData.linkStatus = false;
// Link opportunity!
int block = blocks.GetBlockNumberFromStartAddress(destination);
if (block >= 0 && jo.enableBlocklink)
int block;
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
{
// It exists! Joy of joy!
JMP(blocks.GetBlock(block)->checkedEntry, true);

View File

@ -397,8 +397,8 @@ void JitIL::WriteExit(u32 destination)
linkData.linkStatus = false;
// Link opportunity!
int block = blocks.GetBlockNumberFromStartAddress(destination);
if (block >= 0 && jo.enableBlocklink)
int block;
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
{
// It exists! Joy of joy!
JMP(blocks.GetBlock(block)->checkedEntry, true);

View File

@ -199,8 +199,8 @@ void JitArm::WriteExit(u32 destination)
linkData.linkStatus = false;
// Link opportunity!
int block = blocks.GetBlockNumberFromStartAddress(destination);
if (block >= 0 && jo.enableBlocklink)
int block;
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
{
// It exists! Joy of joy!
B(blocks.GetBlock(block)->checkedEntry);

View File

@ -128,8 +128,8 @@ void JitArmIL::WriteExit(u32 destination)
linkData.linkStatus = false;
// Link opportunity!
int block = blocks.GetBlockNumberFromStartAddress(destination);
if (block >= 0 && jo.enableBlocklink)
int block;
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
{
// It exists! Joy of joy!
B(blocks.GetBlock(block)->checkedEntry);