systemc: Copy the msgType and msg parameters of sc_report.
authorGabe Black <gabeblack@google.com>
Wed, 5 Sep 2018 01:05:13 +0000 (18:05 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 3 Oct 2018 00:53:29 +0000 (00:53 +0000)
commitfd0da6800aae3eaf46bca4fdbfd85a5f9f161326
treeb2cf538d3ce346fd334505794d5fddadf6c31e74
parentfc0e22461e51eebcc6919672802fd9f1a3bc860c
systemc: Copy the msgType and msg parameters of sc_report.

The original strings pointed to by those parameters may go away before
the sc_report has been completely consumed. By copying them, we make
sure other consumers downstream can still access them.

Change-Id: Iab9a802b7ae3bb5aed3a2716cd92886b8d241dfa
Reviewed-on: https://gem5-review.googlesource.com/c/12469
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/utils/sc_report.cc