target-ppc: fix left shift overflow in hpte_page_shift
commitb56d417b8d7548e913d928809ce6bb1d6c2563e2
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Jul 2016 15:22:10 +0000 (15 17:22 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 18 Jul 2016 00:45:44 +0000 (18 10:45 +1000)
treeaacb0097c7f8538a9841b7605a0b730883f18792
parent28f3331887f9ae1fc19d2b9d7914047483442270
target-ppc: fix left shift overflow in hpte_page_shift

ps->pte_enc is a 32-bit value, which is shifted left and then compared
to a 64-bit value.  It needs a cast before the shift.

Reported by Coverity.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/mmu-hash64.c