mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
riscv: Fix block link for prev blocks.
Oops, was just reversed so never linking.
This commit is contained in:
parent
71fcc4a658
commit
81f67c717c
1 changed files with 2 additions and 2 deletions
|
@ -536,7 +536,7 @@ void IRNativeBackend::FinalizeBlock(IRBlock *block, int block_num, const JitOpti
|
|||
}
|
||||
}
|
||||
|
||||
// And also any blocks to this one, in case we're finalizing it later.
|
||||
// And also any blocks from this one, in case we're finalizing it later.
|
||||
auto &outgoing = nativeBlocks_[block_num].exits;
|
||||
for (auto &blockExit : outgoing) {
|
||||
int dstBlockNum = blocks_.GetBlockNumberFromStartAddress(blockExit.dest);
|
||||
|
@ -561,7 +561,7 @@ void IRNativeBackend::SetBlockCheckedOffset(int block_num, int offset) {
|
|||
}
|
||||
|
||||
void IRNativeBackend::AddLinkableExit(int block_num, uint32_t pc, int exitStartOffset, int exitLen) {
|
||||
linksTo_.insert(std::make_pair(block_num, pc));
|
||||
linksTo_.insert(std::make_pair(pc, block_num));
|
||||
|
||||
if (block_num >= (int)nativeBlocks_.size())
|
||||
nativeBlocks_.resize(block_num + 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue