This commit updates the cosim support for interrupts by checking
for a pending dut interrupt alongwith the MIP/MIE checks. Some
microarchitectures can delay the handling of interrupts and without
the proposed changes the cosim will diverge.
This commit also generalizes the CLINT read/write to allow byte or
half-word or word accesses (e.g. MSIP accesses)
This commit updates the cosim support for interrupts by checking for a pending dut interrupt alongwith the MIP/MIE checks. Some microarchitectures can delay the handling of interrupts and without the proposed changes the cosim will diverge.
This commit also generalizes the CLINT read/write to allow byte or half-word or word accesses (e.g. MSIP accesses)