Skip to content

Mismatch with Xiangshan #896

Open
Open
@fly-1011

Description

@fly-1011

Describe

When I was testing Xiangshan, I found inconsistencies between nemu and Xiangshan. Specifically, when executing csrrs a3, unknown_7c2, a5 instructions and then executing special illegal instructions, the following inconsistencies will occur:

Image

Image

The a3 value in nemu stores the pc value 80001014 where the exception occurred, and the a3 value in Xiangshan stores the data after the execution of the csrrs a3, unknown_7c2, a5 instructions.

This is the test sample and log information:test.zip

Version Information

xiangshan:commit 95cb09ae158824d3e5212946334624a692aefd58 (HEAD -> master, origin/master, origin/HEAD)
Author: cz4e [email protected]
Date: Fri May 30 15:27:36 2025 +0800

ready-to-run: commit 43f227c52e54cb170a894600403ea35364551518 (HEAD, origin/master, origin/HEAD)
nemu:commit: 63dcbbf

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