diff options
Diffstat (limited to 'arch/alpha/isa_traits.hh')
-rw-r--r-- | arch/alpha/isa_traits.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/alpha/isa_traits.hh b/arch/alpha/isa_traits.hh index 515ec933b..6f5cae9ef 100644 --- a/arch/alpha/isa_traits.hh +++ b/arch/alpha/isa_traits.hh @@ -168,6 +168,9 @@ namespace AlphaISA typedef union { uint64_t q[NumFloatRegs]; // integer qword view double d[NumFloatRegs]; // double-precision floating point view + + void clear() + { bzero(d, sizeof(d)); } } FloatRegFile; extern const Addr PageShift; @@ -266,6 +269,13 @@ extern const int reg_redir[NumIntRegs]; void serialize(std::ostream &os); void unserialize(Checkpoint *cp, const std::string §ion); + + void clear() + { + bzero(intRegFile, sizeof(intRegFile)); + floatRegFile.clear(); + miscRegs.clear(); + } }; static inline ExtMachInst makeExtMI(MachInst inst, const uint64_t &pc); |