meson.build 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ppc_ss = ss.source_set()
  2. ppc_ss.add(files(
  3. 'cpu-models.c',
  4. 'cpu.c',
  5. 'cpu_init.c',
  6. 'excp_helper.c',
  7. 'gdbstub.c',
  8. 'helper_regs.c',
  9. ))
  10. ppc_ss.add(when: 'CONFIG_TCG', if_true: files(
  11. 'dfp_helper.c',
  12. 'fpu_helper.c',
  13. 'int_helper.c',
  14. 'mem_helper.c',
  15. 'misc_helper.c',
  16. 'timebase_helper.c',
  17. 'translate.c',
  18. 'power8-pmu.c',
  19. ))
  20. ppc_ss.add(libdecnumber)
  21. gen = [
  22. decodetree.process('insn32.decode',
  23. extra_args: '--static-decode=decode_insn32'),
  24. decodetree.process('insn64.decode',
  25. extra_args: ['--static-decode=decode_insn64',
  26. '--insnwidth=64']),
  27. ]
  28. ppc_ss.add(gen)
  29. ppc_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'), if_false: files('kvm-stub.c'))
  30. ppc_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user_only_helper.c'))
  31. ppc_system_ss = ss.source_set()
  32. ppc_system_ss.add(files(
  33. 'arch_dump.c',
  34. 'machine.c',
  35. 'mmu-hash32.c',
  36. 'mmu_common.c',
  37. 'ppc-qmp-cmds.c',
  38. ))
  39. ppc_system_ss.add(when: 'CONFIG_TCG', if_true: files(
  40. 'mmu_helper.c',
  41. ), if_false: files(
  42. 'tcg-stub.c',
  43. ))
  44. ppc_system_ss.add(when: 'TARGET_PPC64', if_true: files(
  45. 'compat.c',
  46. 'mmu-book3s-v3.c',
  47. 'mmu-hash64.c',
  48. 'mmu-radix64.c',
  49. ))
  50. target_arch += {'ppc': ppc_ss}
  51. target_softmmu_arch += {'ppc': ppc_system_ss}