Skip to content

[libcpu][bsp] Add Renesas RH850 G4KH port and qemu-rh850-u2c BSP - #11998

Draft
parthitce wants to merge 4 commits into
RT-Thread:masterfrom
linumiz:rh850/upstream
Draft

parthitce wants to merge 4 commits into
RT-Thread:masterfrom
linumiz:rh850/upstream

Conversation

@parthitce

Copy link
Copy Markdown
Contributor

为什么提交这份PR (why to submit this PR)

Add support for the Renesas RH850 G4KH core, tested on the QEMU rh850-u2c machine.

你的解决方案是什么 (what is your solution)

  • libcpu/rh850: thread switch through TRAP0, nested interrupts, FPU context, fault dumps
  • bsp/renesas/rh850: startup, INTC, OSTM and RLIN3 UART drivers, and the qemu-rh850-u2c board
  • CI: hard and soft float builds and kernel utests on QEMU

Draft: the utest CI needs a ctime.c fix for picolibc first (separate PR).

Tested on QEMU with toolchain v1.1.0 (GCC 14.3, picolibc) and qemu-rh850 v1.0.0: msh boots, kernel_basic 22/22, mem and ipc utests pass, hard and soft float.

请提供验证的bsp和config (provide the config and bsp)

  • BSP: bsp/renesas/rh850/qemu-rh850-u2c

  • .config: default. Soft float: RT_USING_FPU=n

  • action:

Thread switch through TRAP0 and nested EIINT, FPU context and fault dumps.

Signed-off-by: Parthiban Nallathambi <[email protected]>
Startup code, INTC, OSTM and RLIN3 UART drivers and the U2C SoC setup.

Signed-off-by: Parthiban Nallathambi <[email protected]>
RH850/U2C8 on the QEMU rh850-u2c machine, msh on RLIN311.

Signed-off-by: Parthiban Nallathambi <[email protected]>
Hard and soft float builds and kernel utests with toolchain v1.1.0.

Signed-off-by: Parthiban Nallathambi <[email protected]>
@CLAassistant

CLAassistant commented Nov 6, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread!

为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。
To ensure your code complies with RT-Thread's coding style, please run the code formatting workflow by following the steps below (If the formatting of CI fails to run).


🛠 操作步骤 | Steps

  1. 前往 Actions 页面 | Go to the Actions page
    点击进入工作流 → | Click to open workflow →

  2. 点击 Run workflow | Click Run workflow

  • Use workflow from 保持默认分支(通常为 master)
    Keep the default branch (usually master) in Use workflow from
  • 在 branch 输入框填写 PR 分支 rh850/upstream
    Enter PR branch rh850/upstream in the branch field
  • 设置需排除的文件/目录(目录请以"/"结尾)
    Set files/directories to exclude (directories should end with "/")
  1. 等待工作流完成 | Wait for the workflow to complete
    格式化后的代码将作为独立提交推送至你的分支。
    The formatting changes will be pushed to your branch as a separate commit.

完成后,提交将自动更新至 rh850/upstream 分支,关联的 Pull Request 也会同步更新。
Once completed, commits will be pushed to the rh850/upstream branch automatically, and the related Pull Request will be updated.

如有问题欢迎联系我们,再次感谢您的贡献!💐
If you have any questions, feel free to reach out. Thanks again for your contribution!

@github-actions github-actions Bot added BSP action github action yml imporve tools BSP: Renesas BSP related with Renesas libcpu labels Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

📌 Code Review Assignment

🏷️ Tag: bsp_renesas

Reviewers: @kurisaW

Changed Files (Click to expand)
  • bsp/renesas/rh850/libraries/Kconfig
  • bsp/renesas/rh850/libraries/SConscript
  • bsp/renesas/rh850/libraries/common/SConscript
  • bsp/renesas/rh850/libraries/common/startup_gcc.S
  • bsp/renesas/rh850/libraries/drivers/SConscript
  • bsp/renesas/rh850/libraries/drivers/drv_intc.c
  • bsp/renesas/rh850/libraries/drivers/drv_intc.h
  • bsp/renesas/rh850/libraries/drivers/drv_ostm.c
  • bsp/renesas/rh850/libraries/drivers/drv_ostm.h
  • bsp/renesas/rh850/libraries/drivers/drv_usart.c
  • bsp/renesas/rh850/libraries/drivers/drv_usart.h
  • bsp/renesas/rh850/libraries/u2c/SConscript
  • bsp/renesas/rh850/libraries/u2c/soc.c
  • bsp/renesas/rh850/libraries/u2c/soc.h
  • bsp/renesas/rh850/qemu-rh850-u2c/.ci/attachconfig/ci.attachconfig.yml
  • bsp/renesas/rh850/qemu-rh850-u2c/.config
  • bsp/renesas/rh850/qemu-rh850-u2c/Kconfig
  • bsp/renesas/rh850/qemu-rh850-u2c/README.md
  • bsp/renesas/rh850/qemu-rh850-u2c/SConscript
  • bsp/renesas/rh850/qemu-rh850-u2c/SConstruct
  • bsp/renesas/rh850/qemu-rh850-u2c/applications/SConscript
  • bsp/renesas/rh850/qemu-rh850-u2c/applications/main.c
  • bsp/renesas/rh850/qemu-rh850-u2c/board/SConscript
  • bsp/renesas/rh850/qemu-rh850-u2c/board/board.c
  • bsp/renesas/rh850/qemu-rh850-u2c/board/board.h
  • bsp/renesas/rh850/qemu-rh850-u2c/board/linker_scripts/link.lds

🏷️ Tag: workflow

Reviewers: @Rbb666 @kurisaW @supperthomas

Changed Files (Click to expand)
  • .github/ALL_BSP_COMPILE.json
  • .github/workflows/bsp_buildings.yml
  • .github/workflows/utest_auto_run.yml

📊 Current Review Status (Last Updated: 2026-11-07 04:41 CST)


📝 Review Instructions

  1. 维护者可以通过单击此处来刷新审查状态: 🔄 刷新状态
    Maintainers can refresh the review status by clicking here: 🔄 Refresh Status

  2. 确认审核通过后评论 LGTM/lgtm
    Comment LGTM/lgtm after confirming approval

  3. PR合并前需至少一位维护者确认
    PR must be confirmed by at least one maintainer before merging

ℹ️ 刷新CI状态操作需要具备仓库写入权限。
ℹ️ Refresh CI status operation requires repository Write permission.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

@Rbb666
Rbb666 requested a balanced review from Copilot November 7, 2026 06:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action github action yml imporve BSP: Renesas BSP related with Renesas BSP libcpu tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants