Skip to content

Commit

Permalink
sh2 drc: bugfix in block management
Browse files Browse the repository at this point in the history
  • Loading branch information
irixxxx committed Oct 12, 2019
1 parent 6b9ded2 commit b10a782
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cpu/sh2/compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b10a782

Please sign in to comment.