Added partialeq trait where relevant

This commit is contained in:
François Autin
2023-03-08 15:48:33 +01:00
parent ed5b760758
commit 5e265ab27b
5 changed files with 15 additions and 36 deletions

View File

@ -1,5 +1,5 @@
#[derive(PartialEq)]
pub struct Interrupt {
level: InterruptStatus
}

View File

@ -19,7 +19,7 @@ impl RegisterNum for i64 {}
impl RegisterNum for f32 {}
#[derive(PartialEq)]
pub struct Register<U: RegisterNum> {
register: [U; 32]
}
@ -65,6 +65,7 @@ impl Register<f32> {
}
#[derive(PartialEq)]
pub struct Machine {
pub pc : u64,
pub sp: usize,