Fix ffs() argument type problem.

This commit is contained in:
Simon Gorchakov 2020-05-10 22:32:51 +03:00
parent 76a3ebdc03
commit 279483ec29

View File

@ -2234,7 +2234,7 @@ static inline ppcmas_tlb_t *booke206_get_tlbm(CPUPPCState *env, const int tlbn,
target_ulong ea, int way)
{
int r;
uint32_t ways = booke206_tlb_ways(env, tlbn);
int ways = booke206_tlb_ways(env, tlbn);
int ways_bits = ffs(ways) - 1;
int tlb_bits = ffs(booke206_tlb_size(env, tlbn)) - 1;
int i;