mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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:
@ -290,8 +290,8 @@ void Jit64::WriteExit(u32 destination)
|
|||||||
linkData.linkStatus = false;
|
linkData.linkStatus = false;
|
||||||
|
|
||||||
// Link opportunity!
|
// Link opportunity!
|
||||||
int block = blocks.GetBlockNumberFromStartAddress(destination);
|
int block;
|
||||||
if (block >= 0 && jo.enableBlocklink)
|
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
|
||||||
{
|
{
|
||||||
// It exists! Joy of joy!
|
// It exists! Joy of joy!
|
||||||
JMP(blocks.GetBlock(block)->checkedEntry, true);
|
JMP(blocks.GetBlock(block)->checkedEntry, true);
|
||||||
|
@ -397,8 +397,8 @@ void JitIL::WriteExit(u32 destination)
|
|||||||
linkData.linkStatus = false;
|
linkData.linkStatus = false;
|
||||||
|
|
||||||
// Link opportunity!
|
// Link opportunity!
|
||||||
int block = blocks.GetBlockNumberFromStartAddress(destination);
|
int block;
|
||||||
if (block >= 0 && jo.enableBlocklink)
|
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
|
||||||
{
|
{
|
||||||
// It exists! Joy of joy!
|
// It exists! Joy of joy!
|
||||||
JMP(blocks.GetBlock(block)->checkedEntry, true);
|
JMP(blocks.GetBlock(block)->checkedEntry, true);
|
||||||
|
@ -199,8 +199,8 @@ void JitArm::WriteExit(u32 destination)
|
|||||||
linkData.linkStatus = false;
|
linkData.linkStatus = false;
|
||||||
|
|
||||||
// Link opportunity!
|
// Link opportunity!
|
||||||
int block = blocks.GetBlockNumberFromStartAddress(destination);
|
int block;
|
||||||
if (block >= 0 && jo.enableBlocklink)
|
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
|
||||||
{
|
{
|
||||||
// It exists! Joy of joy!
|
// It exists! Joy of joy!
|
||||||
B(blocks.GetBlock(block)->checkedEntry);
|
B(blocks.GetBlock(block)->checkedEntry);
|
||||||
|
@ -128,8 +128,8 @@ void JitArmIL::WriteExit(u32 destination)
|
|||||||
linkData.linkStatus = false;
|
linkData.linkStatus = false;
|
||||||
|
|
||||||
// Link opportunity!
|
// Link opportunity!
|
||||||
int block = blocks.GetBlockNumberFromStartAddress(destination);
|
int block;
|
||||||
if (block >= 0 && jo.enableBlocklink)
|
if (jo.enableBlocklink && (block = blocks.GetBlockNumberFromStartAddress(destination)) >= 0)
|
||||||
{
|
{
|
||||||
// It exists! Joy of joy!
|
// It exists! Joy of joy!
|
||||||
B(blocks.GetBlock(block)->checkedEntry);
|
B(blocks.GetBlock(block)->checkedEntry);
|
||||||
|
Reference in New Issue
Block a user