summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-12-10 23:16:19 -0800
committerGabe Black <gabeblack@google.com>2019-01-09 01:33:44 +0000
commit32e20b3ceb3bc5066b94af845f489b10c7e68c36 (patch)
treed7638708f9d8e4b5999fdac0f9b410e533e69cb1
parentfc5df0bdadfa6a9902b9369e97cd80300c21da4d (diff)
downloadgem5-32e20b3ceb3bc5066b94af845f489b10c7e68c36.tar.xz
systemc: Include cstring in the tlm header file.
A lot of TLM implementation assumes the string functions (memcpy, memset, etc) are available, but don't include cstring. Lets do that for them to avoid having to fix up a lot of places. Change-Id: I1f26d3a227fe2cefc2613e24cbb0333216e46ee9 Reviewed-on: https://gem5-review.googlesource.com/c/15060 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
-rw-r--r--src/systemc/ext/tlm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemc/ext/tlm b/src/systemc/ext/tlm
index 3e671f737..151615103 100644
--- a/src/systemc/ext/tlm
+++ b/src/systemc/ext/tlm
@@ -20,6 +20,7 @@
#ifndef __SYSTEMC_EXT_TLM__
#define __SYSTEMC_EXT_TLM__
+#include <cstring>
#include <systemc> // main SystemC header
#include "tlm_core/2/version.h"