Le 09/01/2017 à 13:25, Thomas Huth a écrit :
 Hi,

On 07.01.2017 16:23, Hervé Poussineau wrote:
Machine supports both Open Hack'Ware and OpenBIOS.
Open Hack'Ware is the default because OpenBIOS is currently unable to boot
PReP boot partitions or PReP kernels.

Signed-off-by: Hervé Poussineau <[email protected]>
---
 default-configs/ppc-softmmu.mak |   1 +
 hw/ppc/prep.c                   | 229 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 230 insertions(+)

[...]


This currently does not compile on a ppc64 host where CONFIG_KVM is set:

hw/ppc/prep.c: In function ‘ibm_40p_init’:
hw/ppc/prep.c:872:9: error: implicit declaration of function 
‘kvmppc_get_tbfreq’ [-Werror=implicit-function-declaration]
         fw_cfg_add_i32(fw_cfg, FW_CFG_PPC_TBFREQ, kvmppc_get_tbfreq());
         ^
hw/ppc/prep.c:872:9: error: nested extern declaration of ‘kvmppc_get_tbfreq’ 
[-Werror=nested-externs]
hw/ppc/prep.c:874:9: error: implicit declaration of function 
‘kvmppc_get_hypercall’ [-Werror=implicit-function-declaration]
         kvmppc_get_hypercall(env, hypercall, 16);
         ^
hw/ppc/prep.c:874:9: error: nested extern declaration of ‘kvmppc_get_hypercall’ 
[-Werror=nested-externs]

You need to #include "kvm_ppc.h" to get the prototype of the
kvmppc_get_tbfreq() function.

Done


Reply via email to