Commit 2d1326f
committed
add ppc64le/ppc64 architecture support
Add build and runtime support for ppc64el (little-endian) and ppc64
(big-endian) POWER architectures:
- cmake/DaemonNacl.cmake: add ppc64el/ppc64 case with dummy x86 NaCl
defines since NaCl has no PPC support
- cmake/DaemonFlags.cmake: add -mcpu=power8 (ppc64el) and -mcpu=power5
(ppc64) compiler flags using new GCC_GENERIC_CPU variable, as GCC on
POWER uses -mcpu instead of -march/-mtune
- cmake/DaemonArchitecture.cmake: define ppc64el parent architecture as
ppc64, and add DAEMON_NACL_RUNTIME_ENABLED compile-time define that is
only set on architectures with a NaCl loader (amd64, i686, armhf)
- src/engine/framework/VirtualMachine.h: default VM type to native DLL
mode on architectures without NaCl runtime support, so the engine does
not attempt to load nonexistent .nexe files
Tested on ppc64le with GCC 16.0.1: builds daemon, daemonded, daemon-tty,
cgame-native-dll.so, and sgame-native-dll.so successfully.1 parent bd2e006 commit 2d1326f
File tree
4 files changed
+38
-0
lines changed- cmake
- src/engine/framework
4 files changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
662 | 674 | | |
663 | 675 | | |
664 | 676 | | |
| |||
676 | 688 | | |
677 | 689 | | |
678 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
679 | 696 | | |
680 | 697 | | |
681 | 698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| 119 | + | |
114 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
| |||
0 commit comments