# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/firefox/hotfix-ppc.patch # Copyright (C) 2020 - 2025 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- firefox-142.0/media/highway/moz.build.vanilla 2025-08-22 18:44:04.900052982 +0200 +++ firefox-142.0/media/highway/moz.build 2025-08-22 18:44:26.052051426 +0200 @@ -10,7 +10,7 @@ # CMake has check_include_file() but for now we disable this. # See bug 1839363 and bug 1903190. -if CONFIG["TARGET_CPU"] in ("ppc64", "s390x") and CONFIG["OS_TARGET"] == "Linux": +if CONFIG["TARGET_CPU"] in ("ppc", "ppc64", "s390x") and CONFIG["OS_TARGET"] == "Linux": DEFINES["TOOLCHAIN_MISS_ASM_HWCAP_H"] = True SOURCES += [ --- firefox-81.0.2/xpcom/reflect/xptcall/md/unix/xptcinvoke_ppc_linux.cpp.vanilla 2020-10-16 17:40:11.138383612 +0200 +++ firefox-81.0.2/xpcom/reflect/xptcall/md/unix/xptcinvoke_ppc_linux.cpp 2020-10-16 17:57:09.014378133 +0200 @@ -45,11 +45,11 @@ uint64_t tempu64; for(uint32_t i = 0; i < paramCount; i++, s++) { - if(s->IsPtrData()) { + if(s->IsIndirect()) { if(s->type == nsXPTType::T_JSVAL) - tempu32 = (uint32_t) &s->ptr; + tempu32 = (uint32_t) &s->val.p; else - tempu32 = (uint32_t) s->ptr; + tempu32 = (uint32_t) &s->val.p; } else { switch(s->type) { @@ -70,7 +70,7 @@ } } - if (!s->IsPtrData() && s->type == nsXPTType::T_DOUBLE) { + if (!s->IsIndirect() && s->type == nsXPTType::T_DOUBLE) { #ifndef __NO_FPRS__ if (fpr < FPR_COUNT) fpregs[fpr++] = s->val.d; @@ -88,7 +88,7 @@ d += 2; } } - else if (!s->IsPtrData() && s->type == nsXPTType::T_FLOAT) { + else if (!s->IsIndirect() && s->type == nsXPTType::T_FLOAT) { #ifndef __NO_FPRS__ if (fpr < FPR_COUNT) fpregs[fpr++] = s->val.f; // if passed in registers, floats are promoted to doubles @@ -99,7 +99,7 @@ else *((float*) d++) = s->val.f; } - else if (!s->IsPtrData() && (s->type == nsXPTType::T_I64 + else if (!s->IsIndirect() && (s->type == nsXPTType::T_I64 || s->type == nsXPTType::T_U64)) { if (gpr & 1) gpr++; // longlongs are aligned in odd/even register pairs, eg. r5/r6 if ((gpr + 1) < GPR_COUNT) {