[PATCH 0/3] rust: Initial MIPS support

Jiaxun Yang posted 3 patches 1 year, 3 months ago
There is a newer version of this series
Documentation/rust/arch-support.rst                |  1 +
.../translations/zh_CN/rust/arch-support.rst       |  1 +
Makefile                                           |  4 ++
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                    | 64 ++++++++++++++++++++++
17 files changed, 102 insertions(+), 25 deletions(-)
[PATCH 0/3] rust: Initial MIPS support
Posted by Jiaxun Yang 1 year, 3 months ago
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

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
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                                           |  4 ++
 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                    | 64 ++++++++++++++++++++++
 17 files changed, 102 insertions(+), 25 deletions(-)
---
base-commit: 469f1bad3c1c6e268059f78c0eec7e9552b3894c
change-id: 20240903-mips-rust-fa8efd836ce9

Best regards,
-- 
Jiaxun Yang <jiaxun.yang@flygoat.com>
Re: [PATCH 0/3] rust: Initial MIPS support
Posted by Miguel Ojeda 1 year, 3 months ago
On Tue, Sep 3, 2024 at 7:14 PM Jiaxun Yang <jiaxun.yang@flygoat.com> wrote:
>
> This series added MIPS arch support to rust for linux,
> hopefully MIPS is not too late to the party :-)

Definitely not late :)

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

That is great, thanks for this!

Cheers,
Miguel