Fix ffs() argument type problem.
This commit is contained in:
parent
76a3ebdc03
commit
279483ec29
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user