Skip to content

[Bug] 如何在 M mode 下跑 qemu-virt64-riscv #9644

@unicornx

Description

@unicornx

RT-Thread Version

master

Hardware Type/Architectures

bsp/qemu-virt64-riscv

Develop Toolchain

Other

Describe the bug

bsp/qemu-virt64-riscv/README_ZH.md 上说 提供了riscv64的两种可配置运行模式,默认运行在M-Mode下。还可以运行在S-Mode 下,
并提供了相应的脚本:

  • M-mode:./qemu-nographic.sh
  • S-mode:./qemu-nographic-smode.sh
    我对比了一下这两个脚本,没感觉有什么区别啊。

而且我理解现在的 qemu 默认都会走 opensbi 并跳转到 user mode 起内核,也就是默认只能运行 s-mode 的 RTT了(看 RTT 的配置,默认现在也是 enable 了RISCV_S_MODE, 这点和文档上说的也不一致)

所以问题是,我们还能在 QEMU 上跑 M-mode 的 RTT 吗?反正我尝试关掉了 RISCV_S_MODE 然后用 qemu 启动(用 ./qemu-nographic.sh)也是不行的。

所以感觉这个文档描述是有问题的。

Other additional context

No response

Metadata

Metadata

Assignees

Labels

Arch: RISC-VBSP related with risc-vDocThis PR/issue related with documents

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions