Skip to content

Commit bb47f01

Browse files
committed
Merge pull request godotengine#106390 from akien-mga/linux-drop-ppc32
Linux: Drop `ppc32` (32-bit PowerPC) architecture support
2 parents a2c6fbe + 1de9789 commit bb47f01

File tree

10 files changed

+9
-32
lines changed

10 files changed

+9
-32
lines changed

core/config/engine.cpp

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -224,40 +224,23 @@ String Engine::get_license_text() const {
224224
String Engine::get_architecture_name() const {
225225
#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) || defined(_M_X64)
226226
return "x86_64";
227-
228227
#elif defined(__i386) || defined(__i386__) || defined(_M_IX86)
229228
return "x86_32";
230-
231229
#elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
232230
return "arm64";
233-
234231
#elif defined(__arm__) || defined(_M_ARM)
235232
return "arm32";
236-
237233
#elif defined(__riscv)
238-
#if __riscv_xlen == 8
239234
return "rv64";
240-
#else
241-
return "riscv";
242-
#endif
243-
244-
#elif defined(__powerpc__)
245-
#if defined(__powerpc64__)
235+
#elif defined(__powerpc64__)
246236
return "ppc64";
247-
#else
248-
return "ppc";
249-
#endif
250-
251237
#elif defined(__loongarch64)
252238
return "loongarch64";
253-
254-
#elif defined(__wasm__)
255-
#if defined(__wasm64__)
239+
#elif defined(__wasm64__)
256240
return "wasm64";
257241
#elif defined(__wasm32__)
258242
return "wasm32";
259243
#endif
260-
#endif
261244
}
262245

263246
bool Engine::is_abort_on_gpu_errors_enabled() const {

core/os/spin_lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ _ALWAYS_INLINE_ static void _cpu_pause() {
8181
__builtin_ia32_pause();
8282
#elif defined(__arm__) || defined(__aarch64__) // ARM.
8383
asm volatile("yield");
84-
#elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) // PowerPC.
84+
#elif defined(__powerpc__) // PowerPC.
8585
asm volatile("or 27,27,27");
8686
#elif defined(__riscv) // RISC-V.
8787
asm volatile(".insn i 0x0F, 0, x0, x0, 0x010");

doc/classes/Engine.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<method name="get_architecture_name" qualifiers="const">
2323
<return type="String" />
2424
<description>
25-
Returns the name of the CPU architecture the Godot binary was built for. Possible return values include [code]"x86_64"[/code], [code]"x86_32"[/code], [code]"arm64"[/code], [code]"arm32"[/code], [code]"rv64"[/code], [code]"riscv"[/code], [code]"ppc64"[/code], [code]"ppc"[/code], [code]"wasm64"[/code], and [code]"wasm32"[/code].
25+
Returns the name of the CPU architecture the Godot binary was built for. Possible return values include [code]"x86_64"[/code], [code]"x86_32"[/code], [code]"arm64"[/code], [code]"arm32"[/code], [code]"rv64"[/code], [code]"ppc64"[/code], [code]"loongarch64"[/code], [code]"wasm64"[/code], and [code]"wasm32"[/code].
2626
To detect whether the current build is 64-bit, or the type of architecture, don't use the architecture name. Instead, use [method OS.has_feature] to check for the [code]"64"[/code] feature tag, or tags such as [code]"x86"[/code] or [code]"arm"[/code]. See the [url=$DOCS_URL/tutorials/export/feature_tags.html]Feature Tags[/url] documentation for more details.
2727
[b]Note:[/b] This method does [i]not[/i] return the name of the system's CPU architecture (like [method OS.get_processor_name]). For example, when running an [code]x86_32[/code] Godot binary on an [code]x86_64[/code] system, the returned value will still be [code]"x86_32"[/code].
2828
</description>

editor/editor_property_name_processor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ EditorPropertyNameProcessor::EditorPropertyNameProcessor() {
255255
capitalize_string_remaps["pck"] = "PCK";
256256
capitalize_string_remaps["png"] = "PNG";
257257
capitalize_string_remaps["po2"] = "(Power of 2)"; // Unit.
258-
capitalize_string_remaps["ppc32"] = "ppc32";
259258
capitalize_string_remaps["ppc64"] = "ppc64";
260259
capitalize_string_remaps["pvrtc"] = "PVRTC";
261260
capitalize_string_remaps["pvs"] = "PVS";

editor/plugins/gdextension_export_plugin.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ void GDExtensionExportPlugin::_export_file(const String &p_path, const String &p
6969
all_archs.insert("arm32");
7070
all_archs.insert("arm64");
7171
all_archs.insert("rv64");
72-
all_archs.insert("ppc32");
7372
all_archs.insert("ppc64");
7473
all_archs.insert("wasm32");
7574
all_archs.insert("loongarch64");

modules/jolt_physics/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
def can_build(env, platform):
2-
return not env["disable_physics_3d"] and not env["arch"] == "ppc32"
2+
return not env["disable_physics_3d"]
33

44

55
def configure(env):

platform/linuxbsd/detect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_flags():
7373

7474
def configure(env: "SConsEnvironment"):
7575
# Validate arch.
76-
supported_arches = ["x86_32", "x86_64", "arm32", "arm64", "rv64", "ppc32", "ppc64", "loongarch64"]
76+
supported_arches = ["x86_32", "x86_64", "arm32", "arm64", "rv64", "ppc64", "loongarch64"]
7777
validate_arch(env["arch"], get_name(), supported_arches)
7878

7979
## Build type

platform/linuxbsd/doc_classes/EditorExportPlatformLinuxBSD.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<members>
1212
<member name="binary_format/architecture" type="String" setter="" getter="">
1313
Application executable architecture.
14-
Supported architectures: [code]x86_32[/code], [code]x86_64[/code], [code]arm64[/code], [code]arm32[/code], [code]rv64[/code], [code]ppc64[/code], [code]ppc32[/code], and [code]loongarch64[/code].
14+
Supported architectures: [code]x86_32[/code], [code]x86_64[/code], [code]arm64[/code], [code]arm32[/code], [code]rv64[/code], [code]ppc64[/code], and [code]loongarch64[/code].
1515
Official export templates include [code]x86_32[/code], [code]x86_64[/code], [code]arm32[/code], and [code]arm64[/code] binaries only.
1616
</member>
1717
<member name="binary_format/embed_pck" type="bool" setter="" getter="">

platform/linuxbsd/export/export_plugin.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool EditorExportPlatformLinuxBSD::get_export_option_visibility(const EditorExpo
184184
void EditorExportPlatformLinuxBSD::get_export_options(List<ExportOption> *r_options) const {
185185
EditorExportPlatformPC::get_export_options(r_options);
186186

187-
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "binary_format/architecture", PROPERTY_HINT_ENUM, "x86_64,x86_32,arm64,arm32,rv64,ppc64,ppc32,loongarch64"), "x86_64"));
187+
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "binary_format/architecture", PROPERTY_HINT_ENUM, "x86_64,x86_32,arm64,arm32,rv64,ppc64,loongarch64"), "x86_64"));
188188

189189
String run_script = "#!/usr/bin/env bash\n"
190190
"export DISPLAY=:0\n"
@@ -276,8 +276,6 @@ String EditorExportPlatformLinuxBSD::_get_exe_arch(const String &p_path) const {
276276
return "x86_32";
277277
case 0x003e:
278278
return "x86_64";
279-
case 0x0014:
280-
return "ppc32";
281279
case 0x0015:
282280
return "ppc64";
283281
case 0x0028:

platform_methods.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
# CPU architecture options.
20-
architectures = ["x86_32", "x86_64", "arm32", "arm64", "rv64", "ppc32", "ppc64", "wasm32", "loongarch64"]
20+
architectures = ["x86_32", "x86_64", "arm32", "arm64", "rv64", "ppc64", "wasm32", "loongarch64"]
2121
architecture_aliases = {
2222
"x86": "x86_32",
2323
"x64": "x86_64",
@@ -29,8 +29,6 @@
2929
"rv": "rv64",
3030
"riscv": "rv64",
3131
"riscv64": "rv64",
32-
"ppcle": "ppc32",
33-
"ppc": "ppc32",
3432
"ppc64le": "ppc64",
3533
"loong64": "loongarch64",
3634
}

0 commit comments

Comments
 (0)