Discussion:
[gem5-dev] Change in gem5/gem5[master]: systemc: Update the gem5-within-systemc README to mention USE_SYSTEMC.
Gabe Black (Gerrit)
2018-11-22 02:00:35 UTC
Permalink
Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/14520


Change subject: systemc: Update the gem5-within-systemc README to mention
USE_SYSTEMC.
......................................................................

systemc: Update the gem5-within-systemc README to mention USE_SYSTEMC.

When linking with an external systemc host, the native gem5 systemc API
should be disabled to avoid linking conflicts.

Change-Id: If7f9b3718fcdbdab5ebc9ef52e746f6bf9f2fb9c
---
M util/systemc/gem5_within_systemc/README
1 file changed, 7 insertions(+), 4 deletions(-)



diff --git a/util/systemc/gem5_within_systemc/README
b/util/systemc/gem5_within_systemc/README
index 9ee1103..6bfb055 100644
--- a/util/systemc/gem5_within_systemc/README
+++ b/util/systemc/gem5_within_systemc/README
@@ -26,16 +26,19 @@
To build:

First build gem5 as a library with cxx-config support and (optionally)
-without python. Also build a normal gem5 (cxx-config not needed, Python
-needed):
+without python. When building the library, disable gem5's native SystemC
+API support, as that will conflict with the external version. Also build a
cd ../../..
scons build/ARM/gem5.opt
-> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
+> scons --with-cxx-config --without-python USE_SYSTEMC=0 \
+> build/ARM/libgem5_opt.so
cd util/systemc
Note: For MAC / OSX this command should be used:
-> scons --with-cxx-config --without-python build/ARM/libgem5_opt.dylib
+> scons --with-cxx-config --without-python USE_SYSTEMC=0 \
+> build/ARM/libgem5_opt.dylib
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/14520
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: If7f9b3718fcdbdab5ebc9ef52e746f6bf9f2fb9c
Gerrit-Change-Number: 14520
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <***@google.com>
Gerrit-MessageType: newchange
Gabe Black (Gerrit)
2018-11-29 08:50:53 UTC
Permalink
Gabe Black has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/14520 )

Change subject: systemc: Update the gem5-within-systemc README to mention
USE_SYSTEMC.
......................................................................

systemc: Update the gem5-within-systemc README to mention USE_SYSTEMC.

When linking with an external systemc host, the native gem5 systemc API
should be disabled to avoid linking conflicts.

Change-Id: If7f9b3718fcdbdab5ebc9ef52e746f6bf9f2fb9c
Reviewed-on: https://gem5-review.googlesource.com/c/14520
Reviewed-by: Matthias Jung <***@eit.uni-kl.de>
Maintainer: Gabe Black <***@google.com>
---
M util/systemc/gem5_within_systemc/README
1 file changed, 7 insertions(+), 4 deletions(-)

Approvals:
Matthias Jung: Looks good to me, approved
Gabe Black: Looks good to me, approved



diff --git a/util/systemc/gem5_within_systemc/README
b/util/systemc/gem5_within_systemc/README
index 9ee1103..6bfb055 100644
--- a/util/systemc/gem5_within_systemc/README
+++ b/util/systemc/gem5_within_systemc/README
@@ -26,16 +26,19 @@
To build:

First build gem5 as a library with cxx-config support and (optionally)
-without python. Also build a normal gem5 (cxx-config not needed, Python
-needed):
+without python. When building the library, disable gem5's native SystemC
+API support, as that will conflict with the external version. Also build a
cd ../../..
scons build/ARM/gem5.opt
-> scons --with-cxx-config --without-python build/ARM/libgem5_opt.so
+> scons --with-cxx-config --without-python USE_SYSTEMC=0 \
+> build/ARM/libgem5_opt.so
cd util/systemc
Note: For MAC / OSX this command should be used:
-> scons --with-cxx-config --without-python build/ARM/libgem5_opt.dylib
+> scons --with-cxx-config --without-python USE_SYSTEMC=0 \
+> build/ARM/libgem5_opt.dylib
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/14520
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: If7f9b3718fcdbdab5ebc9ef52e746f6bf9f2fb9c
Gerrit-Change-Number: 14520
Gerrit-PatchSet: 2
Gerrit-Owner: Gabe Black <***@google.com>
Gerrit-Reviewer: Andreas Sandberg <***@arm.com>
Gerrit-Reviewer: Gabe Black <***@google.com>
Gerrit-Reviewer: Giacomo Travaglini <***@arm.com>
Gerrit-Reviewer: Jason Lowe-Power <***@lowepower.com>
Gerrit-Reviewer: Matthias Jung <***@eit.uni-kl.de>
Gerrit-MessageType: merged
Loading...