mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sh2 drc: bugfix in block management
This commit is contained in:
parent
6b9ded20a0
commit
b10a782a36
1 changed files with 2 additions and 7 deletions
|
@ -766,13 +766,8 @@ static void rm_from_block_lists(struct block_desc *block)
|
|||
|
||||
static void rm_block_list(struct block_list **blist)
|
||||
{
|
||||
struct block_list *next, *current = *blist;
|
||||
while (current != NULL) {
|
||||
next = current->next;
|
||||
rm_from_block_lists(current->block);
|
||||
current = next;
|
||||
}
|
||||
*blist = NULL;
|
||||
while (*blist != NULL)
|
||||
rm_from_block_lists((*blist)->block);
|
||||
}
|
||||
|
||||
static void REGPARM(1) flush_tcache(int tcid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue