Popcnt bug plus another bug fix.

Fix popcnt and Divide by 0 bugs fixed as per Gunnar Ruthenberg.

Also provides fix to qemu with regards to BIT macro in kvm.c by moving
the macro from eepro100.c to qemu-common.h
Merge remote-tracking branch 'avadh/master'