mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00: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:
parent
c5b8c65ddc
commit
d2a90e6eab
4 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue