Now we have Firefox running on RISC-V Linux!

745 views
Skip to first unread message

Wei Wu (吴伟)

unread,
Sep 26, 2021, 11:30:54 AM9/26/21
to RISC-V SW Dev, hongre...@tuna.tsinghua.edu.cn, m_k...@ga2.so-net.ne.jp, dhairyas...@gmail.com, Ninad Jangle
Surprisingly, a developer named Makoto Kato[1] has patched and built
firefox for riscv64 linux platform successfully, in July!

Check it[2] out!

Thanks Hongren for letting me know and re-patching & packaging Firefox
for Arch Linux[3]. Thanks Felix Yan[4] for validating the video play
of Firefox on Unmatched (using my favorite site Bilibili!).

It is (understandably) slow now, due to the lack of several ISA
extensions and the absence of JIT compiler portings. But at least I
can watch videos/animations on Bilibili[4] :-)

Fortunately we now have two students working on the JIT porting for
Spidermonkey[5]. I am optimistic that Ninad Jangle[6] and Dhairya
Shah[7] will get the baseline JIT porting done before the end of this
year.

All contributions and collaborations are welcome!

[1] https://github.com/makotokato
[2] https://wontfix.blogspot.com/2021/07/firefox-on-linuxriscv64.html
[3] https://github.com/felixonmars/archriscv-packages/pull/139
[4] https://twitter.com/felixonmars/status/1442140779955191812
[5] https://mentorship.lfx.linuxfoundation.org/project/fb9e1ba6-d6ed-40b5-82b5-ee1089ef050a
[6] https://mentorship.lfx.linuxfoundation.org/mentee/e2bc3e0e-7270-4528-9d1b-5fc998c26260
[7] https://mentorship.lfx.linuxfoundation.org/mentee/5518b0ab-11cb-4781-8345-439d6db077a0

--
Best wishes,
Wei Wu (吴伟)

Makoto Kato

unread,
Sep 26, 2021, 2:42:14 PM9/26/21
to RISC-V SW Dev, lazyp...@gmail.com, hongre...@tuna.tsinghua.edu.cn, Makoto Kato, dhairyas...@gmail.com, Ninad Jangle
Hi Wei.

Bugzilla has the tracking bug for it as bug 1717203 [1].  When [2] and [3] are landed, I think that you can build trunk tree of Firefox (https://hg.mozilla.org/mozilla-central/) without patches.
And you know I don't write any JIT code for SpiderMonkey and Wasm (CraneLift in Wasmtime or Ion's Wasm) yet, so JS will run on interpreter.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1717203

-- Makoto


2021年9月27日月曜日 0:30:54 UTC+9 lazyp...@gmail.com:

Wei Wu (吴伟)

unread,
Sep 26, 2021, 10:38:28 PM9/26/21
to Makoto Kato, RISC-V SW Dev, hongre...@tuna.tsinghua.edu.cn, dhairyas...@gmail.com, Ninad Jangle
Hi Kato,

Thanks so much for doing this!
Reply all
Reply to author
Forward
0 new messages