cpu: Use the new asBytes function in the protobuf inst tracer.
authorGabe Black <gabeblack@google.com>
Thu, 25 Jan 2018 08:21:58 +0000 (00:21 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 26 Mar 2018 22:34:03 +0000 (22:34 +0000)
commit740619f5d394da3816ff3fe6389cd7eb6ac55b8f
treee230281721d458b07af54fd906cba5c24f116a0c
parent81050be736f0d7ac71e7f862a4f34b1ed6787716
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>
src/cpu/inst_pb_trace.cc
src/cpu/inst_pb_trace.hh