Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/target/riscv/riscv-013.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ static void ac_cache_insert(struct ac_cache *cache, uint32_t command)

static bool ac_cache_contains(const struct ac_cache *cache, uint32_t command)
{
if (cache->size == 0)
return false;
return bsearch(&command, cache->commands, cache->size,
sizeof(*cache->commands), ac_cache_elem_comparator);
}
Expand Down