Fix the undefined lshift negative numbers

This commit is contained in:
lazymio
2022-02-12 17:47:57 +01:00
parent a2f18bbfaf
commit d0de673208
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ tb_lookup__cpu_state(CPUState *cpu, target_ulong *pc, target_ulong *cs_base,
tb = cpu->tb_jmp_cache[hash];
cf_mask &= ~CF_CLUSTER_MASK;
cf_mask |= cpu->cluster_index << CF_CLUSTER_SHIFT;
cf_mask |= ((uint32_t)cpu->cluster_index) << CF_CLUSTER_SHIFT;
if (likely(tb &&
tb->pc == *pc &&