From 279483ec293862ac52f678c8b6b60193b0fc7c2d Mon Sep 17 00:00:00 2001 From: Simon Gorchakov Date: Sun, 10 May 2020 22:32:51 +0300 Subject: [PATCH] Fix ffs() argument type problem. --- qemu/target-ppc/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target-ppc/cpu.h b/qemu/target-ppc/cpu.h index 693e0351..7964e375 100755 --- a/qemu/target-ppc/cpu.h +++ b/qemu/target-ppc/cpu.h @@ -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;