mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
Merge pull request #17906 from unknownbrackets/riscv-blocklink
riscv: Fix crash on clear icache
This commit is contained in:
commit
63b3b31feb
@ -428,15 +428,9 @@ void IRNativeJit::InvalidateCacheAt(u32 em_address, int length) {
|
||||
std::vector<int> numbers = blocks_.FindInvalidatedBlockNumbers(em_address, length);
|
||||
for (int block_num : numbers) {
|
||||
auto block = blocks_.GetBlock(block_num);
|
||||
if (em_address != 0 || length < 0x1FFFFFFF) {
|
||||
backend_->InvalidateBlock(block, block_num);
|
||||
}
|
||||
backend_->InvalidateBlock(block, block_num);
|
||||
block->Destroy(block->GetTargetOffset());
|
||||
}
|
||||
|
||||
if (em_address == 0 && length >= 0x1FFFFFFF) {
|
||||
backend_->ClearAllBlocks();
|
||||
}
|
||||
}
|
||||
|
||||
bool IRNativeJit::DescribeCodePtr(const u8 *ptr, std::string &name) {
|
||||
|
Loading…
Reference in New Issue
Block a user