@@ -41,13 +41,13 @@ ARC GNU tool chain user guide or on the
4141On Ubuntu 12.04/14.04 LTS you can install those with following command (as root):
4242
4343 # apt-get install texinfo byacc flex libncurses5-dev zlib1g-dev \
44- libexpat1-dev libx11-dev texlive build-essential
44+ libexpat1-dev libx11-dev texlive build-essential git
4545
4646On Fedora 17 you can install those with following command (as root):
4747
4848 # yum groupinstall "Development Tools"
4949 # yum install texinfo-tex byacc flex ncurses-devel zlib-devel expat-devel \
50- libX11-devel
50+ libX11-devel git
5151
5252GCC depends on the GMP, MPFR and MPC packages, however there are problems with
5353availability of those packages on the RHEL/CentOS systems (packages has too old
@@ -253,6 +253,28 @@ And in another console (GDB output is omitted):
253253 (gdb) continue
254254 (gdb) q
255255
256+ If one of the HS TCFs is used, then it is required to add `-on
257+ nsim_isa_ll64_option` to nSIM options, because GCC for ARC automatically
258+ generates double-world memory operations, which are not enabled in TCFs
259+ supplied with nSIM:
260+
261+ $ $NSIM_HOME/bin/nsimdrv -gdb -port 51000 \
262+ -tcf $NSIM_HOME/etc/tcf/templates/hs36.tcf -on nsim_emt \
263+ -on nsim_isa_ll64_option
264+
265+ nSIM distribution doesn't containt big-endian TCFs, so `-on
266+ nsim_isa_big_endian` should be added to nSIM options to simulate big-endian
267+ cores:
268+
269+ $ $NSIM_HOME/bin/nsimdrv -gdb -port 51000 \
270+ -tcf $NSIM_HOME/etc/tcf/templates/em6_gp.tcf -on nsim_emt \
271+ -on nsim_isa_big_endian
272+
273+ Default linker script of GNU Tool chain for ARC is not compatible with memory
274+ maps of cores that only has CCM memory (EM4, EM5D, HS34), thus to run
275+ application on nSIM with those TCFs it is required to link application with
276+ linker script appropriate for selected core.
277+
256278Please note that in case of gdbserver-based usage all execution, input and
257279output happens on the side of host that runs gdbserver, so "hello world" string
258280will be printed on the server side.
0 commit comments