Error occurs when "make efirom" in the patch "qemu/roms/"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error occurs when "make efirom" in the patch "qemu/roms/"

Zhangjie (HZ)
Hi!

I have trouble to build pex in qemu.

When I run "make efirom" in the path qemu/roms/
I get errors as follows:
arch/x86/core/x86_tcpip.c: Assembler messages:
arch/x86/core/x86_tcpip.c:101: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:103: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:105: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:107: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:109: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:111: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:113: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:115: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:117: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:119: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:121: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:123: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:125: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:127: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:129: Error: no such instruction: `lodsll'
arch/x86/core/x86_tcpip.c:131: Error: no such instruction: `lodsll'
make[1]: *** [bin-x86_64-efi/x86_tcpip.o] Error 1
make[1]: Leaving directory `/mnt/sdb/zhjie/PXE/qemu/qemu-kvm-1.5.1/roms/ipxe/src'
make: *** [efi-rom-e1000] Error 2

I tried to change the code " lods%z2 " to " lodsl" in the file x86_tcpip.c, then I can build it success.
I wonder if the modification is ok or not?
 And who can tell me why the error occurs?
Thanks!


Best Wishes!

// Jie