chipsalliance / riscv-dv

Random instruction generator for RISC-V processor verification
Apache License 2.0
1.03k stars 330 forks source link

randomizing mstatus.MIE when priv mode is lower than machine #908

Closed Saad525 closed 2 years ago

Saad525 commented 2 years ago

When its lower privilege mode, mstatus.MIE is not required to be 1 for taking interrupt.

So, randomizing mstatus.MPIE to 0/1 when interrupt is enabled, for lower privilege modes.

@GregAC @ctopal @hcallahan-lowrisc

Issue: https://github.com/lowRISC/ibex/issues/1825

google-cla[bot] commented 2 years ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

marnovandermaas commented 2 years ago

@weicaiyang PTAL