diff options
author | Gabe Black <gabeblack@google.com> | 2018-01-25 00:21:58 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-03-26 22:34:03 +0000 |
commit | 740619f5d394da3816ff3fe6389cd7eb6ac55b8f (patch) | |
tree | e230281721d458b07af54fd906cba5c24f116a0c /src/cpu/inst_pb_trace.hh | |
parent | 81050be736f0d7ac71e7f862a4f34b1ed6787716 (diff) | |
download | gem5-740619f5d394da3816ff3fe6389cd7eb6ac55b8f.tar.xz |
cpu: Use the new asBytes function in the protobuf inst tracer.
Use this function to get the binary representation of the instruction
rather than referencing the ExtMachInst typed machInst member of the
StaticInst directly. ExtMachInst is an ISA specific type and can't
always be straightforwardly squished into a 32 bit integer.
Change-Id: Ic1f74d6d86eb779016677ae45c022939ce3e2b9f
Reviewed-on: https://gem5-review.googlesource.com/7563
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/cpu/inst_pb_trace.hh')
-rw-r--r-- | src/cpu/inst_pb_trace.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/inst_pb_trace.hh b/src/cpu/inst_pb_trace.hh index 57b3c2c59..e9e014769 100644 --- a/src/cpu/inst_pb_trace.hh +++ b/src/cpu/inst_pb_trace.hh @@ -93,6 +93,9 @@ class InstPBTrace : public InstTracer StaticInstPtr mi = NULL) override; protected: + std::unique_ptr<uint8_t []> buf; + size_t bufSize; + /** One output stream for the entire simulation. * We encode the CPU & system ID so all we need is a single file */ |