Conversation
📌 Code Review Assignment🏷️ Tag: workflowPath: Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-05-30 03:27 UTC)
📝 Review Instructions
|
bsp/ultrarisc/drivers/drv_dw_spi.c
Outdated
| { | ||
| return tx_left < tx_room ? tx_left : tx_room; | ||
| } | ||
|
|
bsp/ultrarisc/drivers/SConscript
Outdated
|
|
||
| list = os.listdir(cwd) | ||
|
|
||
| for item in list: |
|
|
||
| zhangjing@ultrarisc.com。 | ||
|
|
||
|
|
|
|
||
| rt_inline rt_uint32_t rt_cpu_dcache_line_size() | ||
| { | ||
| return 0; |
There was a problem hiding this comment.
有cache的情况下,cache line不太可能为0吧?而且这个在C文件中,但下面没有被引用到,那么没用的代码应该被删除掉。
There was a problem hiding this comment.
我先改下,cache这块的代码后续还需要整理,我这版先把必要接口实现。
Yaochenger
left a comment
There was a problem hiding this comment.
建议将ultrarisc/ur-cp100目录下的文件移动至bsp目录下同时移除多余的文件,libcpu下不建议再添加类似文件!
这部分代码是否是后续rv64体系结构相关的功能完全统一掉再按你的建议来? |
44c4dd7 to
737fb51
Compare
737fb51 to
b2ffcd8
Compare
现在有人在做相关的rv64统一工作,如果任然加在这里会对后续的整理工作造成负担,不排除后续其他人效仿将这个文件加越来越大 给出一下建议: |
后续这部分会配置成可选项,通用的文件用户用到的在配置中开启即可 |
|
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
支持超睿DP1000 BSP。
你的解决方案是什么 (what is your solution)
1、增加libcpu/risc-v/ultrarisc/ur-cp100目录,支持超睿ur-cp100 cpu核;
2、增加bsp/ultrarisc目录,支持超睿dp1000 evb bsp。
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up