Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么 riscv64gc 上汇编代码中无法使用 mul 指令 #144

Open
Shuumatsu opened this issue Jul 5, 2021 · 2 comments
Open

为什么 riscv64gc 上汇编代码中无法使用 mul 指令 #144

Shuumatsu opened this issue Jul 5, 2021 · 2 comments
Labels
learning Learner discussions

Comments

@Shuumatsu
Copy link

我们的实现中,我们的 target 设置为了 riscv64gc-unknown-none-elf ,这应该是包含了 RISCV 的 M 扩展的 (riscv64gc = RV64IMAFDC ISA)。

然而在 entry.asm 中使用 mul 指令时报错:

WeChat Image_20210706002844

删除图中 mul 行后不会报错,且能正常运行第一章的实现。

@Shuumatsu Shuumatsu added the learning Learner discussions label Jul 5, 2021
@MorningGloryy
Copy link

使用 riscv64imac-unknown-none-elf可以添加mul而且正常运行

@Shuumatsu
Copy link
Author

使用 riscv64imac-unknown-none-elf 可以添加 mul 而且正常运行

可是 riscv64gc = RV64IMAFDC ISA 是包含imac的 按理说应该也行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
learning Learner discussions
Projects
None yet
Development

No branches or pull requests

2 participants