riscv / riscv-test-env

https://jira.riscv.org/browse/RVG-141
Other
42 stars 107 forks source link

Unconditionally clear mie register while disabling interrupts. #26

Closed SandeepRajendran closed 4 years ago

SandeepRajendran commented 4 years ago

On systems without the delegation registers, this code sequence would end up skipping the csrw to mie. The right thing to do is move it before the attempted write to the delegation registers.

SandeepRajendran commented 4 years ago

@aswaterman , please review this.

aswaterman commented 4 years ago

LGTM, thanks.