ax-cpu 0.9.0

Privileged instruction and structure abstractions for various CPU architectures
1
2
3
4
5
use loongArch64::register::{ecfg, estat::Estat};

pub(super) fn is_spurious_interrupt(estat: &Estat) -> bool {
    estat.ecode() == 0 && estat.is() == 0 && ecfg::read().vs() == 0
}