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

fix(csr): check inst exception for Zicbom & Zicboz #537

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cailuoshan
Copy link

No description provided.

@good-circle
Copy link
Contributor

@Tang-Haojin May this PR should be merged into master before release?

@@ -23,6 +23,13 @@
#define CACHE_BLOCK_OPS (CACHE_BLOCK_SIZE / CACHE_OP_SPLIT_SIZE)

def_EHelper(cbo_zero) {
// check illegal instruction exception
if(!cpu.v && ((cpu.mode != MODE_M && !menvcfg->cbze) || (cpu.mode == MODE_U && !senvcfg->cbze))){
Copy link
Contributor

Choose a reason for hiding this comment

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

cbo-cbze

The CBO Spec only says it is not in M ​​mode, maybe it is in HS/HU/VS/VU mode.

Copy link
Author

Choose a reason for hiding this comment

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

Make sense, already fix it.

@@ -23,6 +23,13 @@
#define CACHE_BLOCK_OPS (CACHE_BLOCK_SIZE / CACHE_OP_SPLIT_SIZE)

def_EHelper(cbo_zero) {
// check illegal instruction exception
if((cpu.mode != MODE_M && !menvcfg->cbze) || (cpu.mode == MODE_U && !senvcfg->cbze)){
Copy link
Contributor

Choose a reason for hiding this comment

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

In addition, ModeU should be ModeHU. if ((cpu.mode != MODE_M && !menvcfg->cbze) || (!cpu.v && cpu.mode == MODE_U && !senvcfg->cbze)) {

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.

3 participants