Skip to content

rust: Initial MIPS support

Jiaxun Yang linux-doc linux-kbuild linux-mips linux-trace-kernel linux-um lkml llvm oe-kbuild-all rust-for-linux 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20240903-mips-rust-fa8efd836ce9

Versions newest first

  1. v2 Latest3 patches 8 repliesIn review
  2. v13 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Address review comments on wording & style (See individual commit messages)
- Add microMIPS support
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rust: Introduce HAVE_GENERATE_RUST_TARGET config optionMakefile arch/Kconfig arch/um/Kconfig +4 more+14 -62 replies
2/3MIPS: Rename mips_instruction type to workaround bindgen issuearch/mips/include/asm/dsemul.h arch/mips/include/asm/inst.h arch/mips/kernel/ftrace.c +3 more+19 -190 replies
3/3rust: Enable for MIPSDocumentation/rust/arch-support.rst Documentation/translations/zh_CN/rust/arch-support.rst arch/mips/Kconfig +1 more+72 -06 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] rust: Initial MIPS support

Hi Folks,

This series added MIPS arch support to rust for linux, hopefully MIPS is not too late to the party :-)

Sample rust module tested on R4000(el),mips32,mips32r2el,mips64, mips64r2el,mips64r6el.

Please review.

Thanks

---
Changes in v2:
- Address review comments on wording & style (See individual commit messages)
- Add microMIPS support
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Jiaxun Yang (3):
rust: Introduce HAVE_GENERATE_RUST_TARGET config option
MIPS: Rename mips_instruction type to workaround bindgen issue
rust: Enable for MIPS

 Documentation/rust/arch-support.rst                |  1 +
 .../translations/zh_CN/rust/arch-support.rst       |  1 +
 Makefile                                           |  3 +
 arch/Kconfig                                       |  8 +++
 arch/mips/Kconfig                                  |  2 +
 arch/mips/include/asm/dsemul.h                     |  2 +-
 arch/mips/include/asm/inst.h                       |  6 +-
 arch/mips/kernel/ftrace.c                          |  2 +-
 arch/mips/kernel/kprobes.c                         |  2 +-
 arch/mips/math-emu/cp1emu.c                        | 18 +++---
 arch/mips/math-emu/dsemul.c                        |  8 +--
 arch/um/Kconfig                                    |  1 +
 arch/x86/Makefile                                  |  1 -
 arch/x86/Makefile.um                               |  1 -
 rust/Makefile                                      |  2 +-
 scripts/Makefile                                   |  4 +-
 scripts/generate_rust_target.rs                    | 68 ++++++++++++++++++++++
 17 files changed, 105 insertions(+), 25 deletions(-)

---
base-commit: 469f1bad3c1c6e268059f78c0eec7e9552b3894c
change-id: 20240903-mips-rust-fa8efd836ce9

Best regards,

Signature · 1 line
Jiaxun Yang <[email protected]>