Skip to content

Conversation

@no1wudi
Copy link
Contributor

@no1wudi no1wudi commented Dec 28, 2021

Summary

CONFIG_RV32IM_HW_MULDIV can be safely removed since this behavior is
controlled by M extension.

See gcc manual: https://gcc.gnu.org/onlinedocs/gcc-11.2.0/gcc/RISC-V-Options.html#RISC-V-Options
-mdiv
-mno-div
Do or don’t use hardware instructions for integer division. This requires the M extension. The default is to use them if the specified architecture has these instructions.

Impact

Refactor only.

Testing

CI and rv32-virt

CONFIG_RV32IM_HW_MULDIV can be safely removed since this behavior is
controlled by M extension.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
@no1wudi no1wudi changed the title arch/risc-v: Remove unsued kconfigs arch/risc-v: Remove unneeded kconfigs Dec 28, 2021
Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 left a comment

Choose a reason for hiding this comment

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

LGTM.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants