Link the infinate loop at 0x10000000
authorPalmer Dabbelt <palmer@dabbelt.com>
Tue, 16 May 2017 19:34:45 +0000 (12:34 -0700)
committerPalmer Dabbelt <palmer@dabbelt.com>
Tue, 16 May 2017 19:48:05 +0000 (12:48 -0700)
Spike appears to have a problem geterating DTS at 0x80000000.

debug/programs/infinite_loop
debug/targets/spike/link.lds
debug/testlib.py

index 628fd246c2866cd223cff9eaf15dd9cdc10fb11d..0cf68cb1665b7552c9f5afee612d7e2449d3f6de 100755 (executable)
Binary files a/debug/programs/infinite_loop and b/debug/programs/infinite_loop differ
index b86b2b732e111f6290139b99e7d4c84a71d7a747..01d0e3d0f7861ac5d6766cf4af4754630072ceca 100755 (executable)
@@ -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)
index ecb0431e128e5d3941245821c5a275f4eaabe899..858c75cb43ba45206aaf7e58c652df9216640e0a 100644 (file)
@@ -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: