Index: src/mips/simulator-mips.h |
diff --git a/src/mips/simulator-mips.h b/src/mips/simulator-mips.h |
index 0e9c2129837f3a9265c248ed0f37842bc15c2707..00b79b3cfe24799322c7419f905e1f70673e4ed4 100644 |
--- a/src/mips/simulator-mips.h |
+++ b/src/mips/simulator-mips.h |
@@ -268,6 +268,20 @@ class Simulator { |
inline double ReadD(int32_t addr, Instruction* instr); |
inline void WriteD(int32_t addr, double value, Instruction* instr); |
+ // Helpers for data value tracing. |
+ enum TraceType { |
+ BYTE, |
+ HALF, |
+ WORD |
+ // DWORD, |
+ // DFLOAT - Floats may have printing issues due to paired lwc1's |
+ }; |
+ |
+ void TraceRegWr(int32_t value); |
+ void TraceMemWr(int32_t addr, int32_t value, TraceType t); |
+ void TraceMemRd(int32_t addr, int32_t value); |
+ EmbeddedVector<char, 128> trace_buf_; |
+ |
// Operations depending on endianness. |
// Get Double Higher / Lower word. |
inline int32_t GetDoubleHIW(double* addr); |