首页 文章

“--target list”在qemu安装中的含义

提问于
浏览
4

我是qemu的新手 . 我有以下问题 . 我需要使用qemu模拟一些新的指令 . 基本上我将target-i386修改为target-i386-extended . 添加tcg / i386-extended . 由于qemu支持许多体系结构,通常我使用以下命令进行配置

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

使

make install

如果我们想要模仿新目标,是否需要进行任何更改?如果是这样,在上述情况下需要什么命令?

期待你的回复 .

1 回答

  • 8
    ./configure --help
    

    显示自定义构建和编译的选项 .

    标准选项:

    --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)

    默认情况下,它将为所有目标构建,如x86,x86_64,arm.powerpc等

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

    这将只为x86目标构建,即你只能获得qemu-i386二进制文件 .

    如果你想要手臂目标,那么使用

    ./configure --target-list=arm-softmmu 将仅为arm构建和编译 .

    您将获得的qemu-system-arm二进制文件可用于模拟ARM板

相关问题