rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

qemu-riscv-virt64 smode 下无法启动

Open wineee opened this issue 3 years ago • 2 comments

使用工具: QEMU emulator version 7.0.0 opensbi v1.0

目前 m态 运行正常,但是 S态 无法启动:

./qemu-nographic-smode.sh 执行结果: ....(opensbi) heap: [0x802323a1 - 0x866323a1] \ | /

  • RT - Thread Operating System / | \ 4.1.0 build May 22 2022 01:38:06 2006 - 2022 Copyright by RT-Thread team xcause = 00000002,xtval = 80200112,xepc = 8025fdf8

Exception: Illegal instruction --------------Dump Registers----------------- Function Registers: xcause = 00000005,xtval = 802085a8,xepc = 80224b00

Exception: Load access fault --------------Dump Registers----------------- Function Registers: xcause = 00000005,xtval = 80208386,xepc = 80224d00

Exception: Load access fault --------------Dump Registers----------------- Function Registers: xcause = 00000005,xtval = 80208386,xepc = 80224d00

Exception: Load access fault --------------Dump Registers----------------- Function Registers: xcause = 00000005,xtval = 80208386,xepc = 80224d00

Exception: Load access fault --------------Dump Registers----------------- Function Registers: xcause = 00000005,xtval = 80208386,xepc = 80224d00 无限循环了

我是用 scons --pyconfig 配置的: image

大概测试了一下历史版本 https://github.com/RT-Thread/rt-thread/commit/cda8caeda0cf105dd660192e367017eea0d407ec 是可以用的, https://github.com/RT-Thread/rt-thread/commit/557821fd3dfb6e13fc26b65e199508ba09f49872 开始无法正常使用

wineee avatar May 21 '22 08:05 wineee

欢迎尝试修正,PR。

supperthomas avatar May 22 '22 09:05 supperthomas

在https://github.com/RT-Thread/rt-thread/commit/557821fd3dfb6e13fc26b65e199508ba09f49872 中和的最近的commit https://github.com/RT-Thread/rt-thread/commit/f57eb4feb5ee4856299058058eff15593ac0570d 下都没发现这种情况 51 now

FatPigeorz avatar Nov 10 '22 05:11 FatPigeorz

solve in here: https://github.com/RT-Thread/rt-thread/pull/7040

mysterywolf avatar Mar 11 '23 04:03 mysterywolf