From 771bb94e09ad1915c18a581ba35edd75c8903837 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Tue, 16 May 2017 12:34:45 -0700 Subject: [PATCH] Link the infinate loop at 0x10000000 Spike appears to have a problem geterating DTS at 0x80000000. --- debug/programs/infinite_loop | Bin 6344 -> 9288 bytes debug/targets/spike/link.lds | 2 +- debug/testlib.py | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debug/programs/infinite_loop b/debug/programs/infinite_loop index 628fd246c2866cd223cff9eaf15dd9cdc10fb11d..0cf68cb1665b7552c9f5afee612d7e2449d3f6de 100755 GIT binary patch literal 9288 zcmeI2O-mb56o$`C;wL4<6jbcyDy8aXk`&b1g+xT-qDVKjAi_9K#%Abzgm{Iz(hB|$ zm#+O0{+&`v*Y@16WHOCVDCp)~m^tUZbKY}ro=i63UTlBZu`LVCu;CY|nN=2ALqFJE zP|1kY-eFAx#$im>j)_OIS|rM6BGbBw{W?)gg9s1-B0vO)01+SpM1Tko0U|&IhyW3I z3Ia1z052`e{sBi|-E2->H#hF@n%@_HKa6Z|T344(u?Jd%2oM1xKm>>Y5g-CYfCvx) zB0vO)01n%y&F68R^_%yrr2U4k zvE}_$?Jwv8^Bz8SZbht>9V<8yS}iML&X^MBa=P(nV}4J<(qPKi)`f!4Bwpi6hFKja jFq*wR!-qwYJK*-Is&?4ck(@o>1Zflf65g=5Ms$L?k9Cw>o*k0pZ zp)^7wlNB@v4uw5bqDZ6?;=-xwfom%92e@+p^#>$X!wGPBCRdsD zxymYcRaU*HGV_7PtRFR2`9)*ZM;bFp8ue+^r%|6qeFpUz)MrqiL46MOIn?J+pF@2f z^?B6iQJ?pY6|Kj|46C3K*nrwAp7E6R{W!p#6=m65Q_R5RK+A*#Wlrb>QGyAs&{Kp4 zr#Ph+Q3H#sbdsckNuHvoi58sZ8l56~FvWFRA!9*>kI^$E9h~85I!*Qk(|jL2OESS( zo}pEe4XQj#&yiekj_2rkvOhS__tOg`A6(#h^v3X@Xs%wrIG(isuLt4_fbT+|RXG$? zqJ+8u?8U8q0rB9aANqH0>hSO@y)W>>Cpu7z6XYxN%cHs!grBCMplbttcoXx{E!642 z#<%c34)}jCiz~Pf4fPbT($?>xzNYN8pX6^3?l0aG)R2wMuYVOfagL2m`?pIoGt9=>#Y;G^*;t3R2k#C;u9(b{9uiQs9mb? zXnO<({48M*$PVk15#t4kt0Q=HC<0?6_@v~2G=kS8zD9SS^UWA1yYZ`t?{&`kzrj0* z8+iWN?Cy1z5kH9dPjX)q=ORACCh)2n@rwe)_yXHt9f=P>?7ozET(^z!yEqW*d?VMd z$Oqp_{;an9Jl{!vR<0kP2TuC!?#V{u;#)oc>XniU3-!*mmSguE&+(ztZrUF@4d3m7 z->Y|bjqx4n-2l(8H{Q2>w<||;uJ5~TXm+kQJ5ArQTdvzJHE`baG1>Nf%blyY?5^AF z_)hO=yq#DbY{5cKyWVQK4I7v4`OvO6J77DVYuGK~V<>qy+J1cwv)_yILOk-FMITBH zw=G^^X~@4!&!JwtyV`Ia>8q@(59{ah`LNtB=SMIL{m^fT&mM{fqnAu@MeNLfy-fhC zQvb6gigJDy+n5kzJQF2IW2SPvGc7zF&F<|4aUAa(!{UDKrGHlbcX&A_$~>z76ZE^j At^fc4 diff --git a/debug/targets/spike/link.lds b/debug/targets/spike/link.lds index b86b2b7..01d0e3d 100755 --- a/debug/targets/spike/link.lds +++ b/debug/targets/spike/link.lds @@ -4,7 +4,7 @@ SECTIONS { /* Leave some space for pk's data structures, which includes tohost/fromhost * which are special addresses we ought to leave alone. */ - . = 0x80010000; + . = 0x10010000; .text : { *(.text.entry) diff --git a/debug/testlib.py b/debug/testlib.py index ecb0431..858c75c 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -74,6 +74,8 @@ class Spike(object): if timeout: cmd = ["timeout", str(timeout)] + cmd + cmd += ["-m0x10000000:0x10000000"] + if halted: cmd.append('-H') if with_jtag_gdb: -- 2.30.2