Skip to content

Conversation

@sinceforYy
Copy link
Contributor

@sinceforYy sinceforYy commented Nov 21, 2024

In order for NEMU to use the value of the xtopi register for interrupt handling, we need to update the xtopi register in NEMU. Since NEMU does not support the out-of-core part of AIA, we need to use the value of xtopei when updating xtopi, so we pass xtopei through the difftest framework.

Copy link
Member

@poemonsense poemonsense left a comment

Choose a reason for hiding this comment

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

Look good to me except the warning message when aia is not supported in the REF

inline void aia_xtopei(struct AIAXtopei &xtopei) {
if (ref_aia_xtopei) {
ref_aia_xtopei(&xtopei);
}
Copy link
Member

Choose a reason for hiding this comment

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

Should we print something here to tell the user the API has not been implemented in the REF?

@poemonsense poemonsense merged commit 7d3d2fb into OpenXiangShan:master Nov 21, 2024
5 checks passed
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