Only print pressure for toprcs containing registers.
Many ISAs don't need 4 top-level register classes, so don't print them.
This commit is contained in:
@@ -238,7 +238,9 @@ impl fmt::Display for Pressure {
|
|||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
write!(f, "Pressure[")?;
|
write!(f, "Pressure[")?;
|
||||||
for rc in &self.toprc {
|
for rc in &self.toprc {
|
||||||
write!(f, " {}+{}/{}", rc.base_count, rc.transient_count, rc.limit)?;
|
if rc.limit > 0 {
|
||||||
|
write!(f, " {}+{}/{}", rc.base_count, rc.transient_count, rc.limit)?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
write!(f, " ]")
|
write!(f, " ]")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user