}
-void lightrec_mark_for_recompilation(struct blockcache *cache,
- struct block *block)
-{
- block->flags |= BLOCK_SHOULD_RECOMPILE;
-}
-
void lightrec_register_block(struct blockcache *cache, struct block *block)
{
u32 pc = kunseg(block->pc);
u32 pc = kunseg(block->pc);
struct block *old = cache->lut[(pc >> 2) & (LUT_SIZE - 1)];
- remove_from_code_lut(cache, block);
-
if (old == block) {
cache->lut[(pc >> 2) & (LUT_SIZE - 1)] = old->next;
return;