Revision dc333cd6 hw/ppc_newworld.c

b/hw/ppc_newworld.c
64 64
#include "loader.h"
65 65
#include "elf.h"
66 66
#include "kvm.h"
67
#include "kvm_ppc.h"
67 68

  
68 69
#define MAX_IDE_BUS 2
69 70
#define VGA_BIOS_SIZE 65536
......
413 414
    fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_HEIGHT, graphic_height);
414 415
    fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_DEPTH, graphic_depth);
415 416

  
417
    if (kvm_enabled()) {
418
#ifdef CONFIG_KVM
419
        fw_cfg_add_i32(fw_cfg, FW_CFG_PPC_TBFREQ, kvmppc_get_tbfreq());
420
#endif
421
    } else {
422
        fw_cfg_add_i32(fw_cfg, FW_CFG_PPC_TBFREQ, get_ticks_per_sec());
423
    }
424

  
416 425
    qemu_register_boot_set(fw_cfg_boot_set, fw_cfg);
417 426
}
418 427

  

Also available in: Unified diff