FreeBSD Bugzilla – Attachment 211106 Details for
Bug 243653
www/firefox: fix build on aarch64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
www_firefox.diff (text/plain), 1.28 KB, created by
Mikael Urankar
on 2020-01-27 16:09:07 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Mikael Urankar
Created:
2020-01-27 16:09:07 UTC
Size:
1.28 KB
patch
obsolete
>Index: www/firefox/files/patch-gfx_skia_skia_src_core_SkCpu.cpp >=================================================================== >--- www/firefox/files/patch-gfx_skia_skia_src_core_SkCpu.cpp (revision 524229) >+++ www/firefox/files/patch-gfx_skia_skia_src_core_SkCpu.cpp (working copy) >@@ -4,13 +4,16 @@ > uint32_t hwcaps = getauxval(AT_HWCAP); > ^ > >---- gfx/skia/skia/src/core/SkCpu.cpp.orig 2019-02-27 22:18:23 UTC >+--- gfx/skia/skia/src/core/SkCpu.cpp.orig 2020-01-17 22:34:22 UTC > +++ gfx/skia/skia/src/core/SkCpu.cpp >-@@ -70,6 +70,20 @@ >+@@ -72,6 +72,23 @@ > return features; > } > > +#elif defined(SK_CPU_ARM64) && defined(__FreeBSD__) >++#ifndef ID_AA64ISAR0_CRC32_VAL >++#define ID_AA64ISAR0_CRC32_VAL ID_AA64ISAR0_CRC32 >++#endif > + #include <machine/armreg.h> > + > + static uint32_t read_cpu_features() { >@@ -17,8 +20,8 @@ > + uint32_t features = 0; > + uint64_t id_aa64isar0; > + >-+ id_aa64isar0 = READ_SPECIALREG(ID_AA64ISAR0_EL1); >-+ if (ID_AA64ISAR0_CRC32(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) { >++ id_aa64isar0 = READ_SPECIALREG(id_aa64isar0_el1); >++ if (ID_AA64ISAR0_CRC32_VAL(id_aa64isar0) == ID_AA64ISAR0_CRC32_BASE) { > + features |= SkCpu::CRC32; > + } > + return features;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 243653
:
211106
|
211696
|
211698