Fixed hardware deserialization issues

This commit is contained in:
simon
2018-03-10 11:51:31 -05:00
parent 9cac665101
commit e4269b83c4
7 changed files with 34 additions and 10 deletions

View File

@@ -458,7 +458,11 @@ public class CPU implements MongoSerialisable {
String str = "------------------------\n";
str += registerSet.toString();
str += status.toString();
str += "------------------------\n";
str += "HW: ";
for (CpuHardware hw : attachedHardware.values()) {
str += hw + ", ";
}
str += "\n------------------------\n";
return str;
}

View File

@@ -42,4 +42,8 @@ public abstract class CpuHardware implements MongoSerialisable {
return null;
}
@Override
public String toString() {
return String.format("<%04X>", (int) getId());
}
}