Skip to content

Build warnings when building qemu with 'disable-tcg' for ppc64-softmmu target

Host environment

  • Operating system: "CentOS Stream 9"
  • OS/kernel version: 6.1.0-rc4+
  • Architecture: ppc64le
  • QEMU flavor: qemu-system-ppc64
  • QEMU version: 7.1.91
  • QEMU command line: NA
    ./qemu-system-x86_64 -M q35 -m 4096 -enable-kvm -hda fedora32.qcow2

Emulated/Virtualized environment

  • Operating system: NA
  • OS/kernel version: NA
  • Architecture: (ppc64le

Description of problem

Building recent upstream qemu (HEAD 2c831124) for 'ppc64-softmmu' target is failing due to following build warnings:

../target/ppc/cpu_init.c:7018:13: error: 'ppc_restore_state_to_opc' defined but not used [-Werror=unused-function] 7018 | static void ppc_restore_state_to_opc(CPUState *cs,

Steps to reproduce

  1. $ git clone --recurse-submodules https://gitlab.com/qemu-project/qemu.git
  2. ./configure --target-list=ppc64-softmmu --disable-tcg && make

Additional information

Patch for this issue has been posted and reviewed at https://lore.kernel.org/all/20221116131743.658708-1-vaibhav@linux.ibm.com/

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information