mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07:00
lzcnt is a AMD Phenom/Barcelona added instruction returning the number of leading zero bits in a word. As this is similar to the "bsr" instruction, reuse the existing code. There need to be some more changes, though, as lzcnt always returns a valid value (in opposite to bsr, which has a special case when the operand is 0). lzcnt is guarded by the ABM CPUID bit (Fn8000_0001:ECX_5). Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> |
||
|---|---|---|
| .. | ||
| cpu.h | ||
| exec.h | ||
| helper.c | ||
| helper.h | ||
| helper_template.h | ||
| kvm.c | ||
| machine.c | ||
| op_helper.c | ||
| ops_sse.h | ||
| ops_sse_header.h | ||
| svm.h | ||
| TODO | ||
| translate.c | ||