Added partialeq trait where relevant
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub struct Interrupt {
|
||||
level: InterruptStatus
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ impl RegisterNum for i64 {}
|
||||
impl RegisterNum for f32 {}
|
||||
|
||||
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub struct Register<U: RegisterNum> {
|
||||
register: [U; 32]
|
||||
}
|
||||
@ -68,6 +68,7 @@ impl Register<f32> {
|
||||
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub struct Machine {
|
||||
pub pc : u64,
|
||||
pub sp: usize,
|
||||
|
Reference in New Issue
Block a user