Skip to content

【提问(已解决)】关于执行mret指令时difftest报错的问题 #17

@shili2017

Description

@shili2017

mstatus different at pc = 0x00800005f4, right= 0x0000000000000088, wrong = 0x0000000000001888

执行mret指令时,在我们的实现里始终保持在machine mode,但是difftest给出的默认实现是返回到user mode(见mstatus中的mpp field),需要在difftest中修改源码吗?具体是在哪里修改?

(QQ群中有人提出类似问题但是聊天记录中没有具体回答)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions