unit_base is basically finished, implemented AddSub[I], didn't check any tests yet
This commit is contained in:
parent
3f6e5cc600
commit
3bd5c77a3f
8 changed files with 21311 additions and 23900 deletions
|
|
@ -39,20 +39,18 @@ impl PRegFlagsPowerISA {
|
|||
}
|
||||
#[hdl]
|
||||
pub fn clear_unused(flags: impl ToExpr<Type = PRegFlags>) {
|
||||
// list all flags explicitly so we don't miss handling any new flags
|
||||
#[hdl]
|
||||
match flags {
|
||||
// list all flags explicitly so we don't miss handling any new flags
|
||||
PRegFlags {
|
||||
pwr_ca_x86_cf: _,
|
||||
pwr_ca32_x86_af: _,
|
||||
pwr_ov_x86_of: _,
|
||||
pwr_ov32_x86_df: _,
|
||||
pwr_cr_lt_x86_sf: _,
|
||||
pwr_cr_gt_x86_pf: _,
|
||||
pwr_cr_eq_x86_zf: _,
|
||||
pwr_so: _,
|
||||
} => {}
|
||||
}
|
||||
let PRegFlags {
|
||||
pwr_ca_x86_cf: _,
|
||||
pwr_ca32_x86_af: _,
|
||||
pwr_ov_x86_of: _,
|
||||
pwr_ov32_x86_df: _,
|
||||
pwr_cr_lt_x86_sf: _,
|
||||
pwr_cr_gt_x86_pf: _,
|
||||
pwr_cr_eq_x86_zf: _,
|
||||
pwr_so: _,
|
||||
} = flags;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -83,20 +81,19 @@ impl PRegFlagsX86 {
|
|||
}
|
||||
#[hdl]
|
||||
pub fn clear_unused(flags: impl ToExpr<Type = PRegFlags>) {
|
||||
// list all flags explicitly so we don't miss handling any new flags
|
||||
#[hdl]
|
||||
match flags {
|
||||
// list all flags explicitly so we don't miss handling any new flags
|
||||
PRegFlags {
|
||||
pwr_ca_x86_cf: _,
|
||||
pwr_ca32_x86_af: _,
|
||||
pwr_ov_x86_of: _,
|
||||
pwr_ov32_x86_df: _,
|
||||
pwr_cr_lt_x86_sf: _,
|
||||
pwr_cr_gt_x86_pf: _,
|
||||
pwr_cr_eq_x86_zf: _,
|
||||
pwr_so: unused1,
|
||||
} => connect(unused1, false),
|
||||
}
|
||||
let PRegFlags {
|
||||
pwr_ca_x86_cf: _,
|
||||
pwr_ca32_x86_af: _,
|
||||
pwr_ov_x86_of: _,
|
||||
pwr_ov32_x86_df: _,
|
||||
pwr_cr_lt_x86_sf: _,
|
||||
pwr_cr_gt_x86_pf: _,
|
||||
pwr_cr_eq_x86_zf: _,
|
||||
pwr_so: unused1,
|
||||
} = flags;
|
||||
connect(unused1, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue