Skip to content

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

Open
@Shuumatsu

Description

@Shuumatsu

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

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

WeChat Image_20210706002844

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    learningLearner discussions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions