eeric/rv_core/instruction/executor/m/
divu.rs1use crate::rv_core::instruction::executor::prelude::*;
2
3pub fn divu(R { rd, rs1, rs2 }: R, x: &mut IntegerRegisters) {
4 x[rd] = if x[rs2] == 0 {
5 u64::MAX
6 } else {
7 x[rs1].wrapping_div(x[rs2])
8 }
9}