Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"--target list" meaning in qemu installation

I am new to qemu. I have the following question. I needed to emulate some new instructions using qemu. Basically I modify the target-i386 to something like target-i386-extended. Add tcg/i386-extended.Since qemu supports many architectures, normally i configure using the following command

./configure --target-list=i386-softmmu --enable-debug

make

make install

Are there any changes that needs to be done if we want to emulate new target? If so, what needs to be the command in the above case?

Looking forward to your reply.

like image 679
SRKV Avatar asked Oct 30 '14 23:10

SRKV


People also ask

Can QEMU emulate arm?

QEMU can emulate both 32-bit and 64-bit Arm CPUs. Use the qemu-system-aarch64 executable to simulate a 64-bit Arm machine.

How do you build QEMU from source?

Building from source The most surefire way to get QEMU working is to build it from its source. To do so, make sure you have git (and if you're on Windows, get MinGW), and enter the following commands into a terminal/command-line environment: git clone git://git.qemu-project.org/qemu.git. cd qemu.


1 Answers

./configure --help

shows option for customized building and compiling.

Standard options:

  --help                   print this message

  --prefix=PREFIX          install in PREFIX [/usr/local]

  --interp-prefix=PREFIX   where to find shared libraries,
                           etc.use %M for cpu name [/usr/gnemul/qemu-%M]

--target-list=LIST set target list (default: build everything)

by default it will build for all your targets like x86,x86_64,arm.powerpc etc

./configure --target-list=i386-softmmu

this will build only for x86 target i.e you ll get qemu-i386 binary only.

if you want for arm target only then use

./configure --target-list=arm-softmmu which will build and compile only for arm.

qemu-system-arm binaries you ll get which you can use for emulating ARM board

like image 128
vinay hunachyal Avatar answered Sep 22 '22 01:09

vinay hunachyal