From 00468b0a9b651d930c06d565f3ffc7e704f0e57c Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 3 Dec 2017 17:39:59 +0200 Subject: [PATCH] drc: do lit check before size_nolit is cleared --- cpu/sh2/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index 0e8b65b3..e18f43c8 100644 --- a/cpu/sh2/compiler.c +++ b/cpu/sh2/compiler.c @@ -3121,9 +3121,9 @@ static void sh2_smc_rm_blocks(u32 a, u16 *drc_ram_blk, int tcache_id, u32 shift, if (to < end_addr) to = end_addr; - sh2_smc_rm_block(block, tcache_id, mask); if (a >= start_addr + block->size_nolit) literal_disabled_frames = 3; + sh2_smc_rm_block(block, tcache_id, mask); // entry lost, restart search entry = *blist; -- 2.39.5