diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2015-02-19 23:31:21 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-02-21 23:18:23 -0500 |
commit | 20a0ffe33a7d43ba13eff917ec3f50b4f7644f81 (patch) | |
tree | 6c18f423308e80f747ec8a2bb0a576c1c858be00 /sim/erc32/interf.c | |
parent | df9bc4163b1331c8a4dad6830afeff4ff305a20a (diff) | |
download | gdb-20a0ffe33a7d43ba13eff917ec3f50b4f7644f81.zip gdb-20a0ffe33a7d43ba13eff917ec3f50b4f7644f81.tar.gz gdb-20a0ffe33a7d43ba13eff917ec3f50b4f7644f81.tar.bz2 |
sim/erc32: Perform pseudo-init if binary linked to non-zero address.
Binaries produced by most erc32 tool-chains do not include
system initialization. sis will detect this and initialize
necessary registers for memory and timer control.
Diffstat (limited to 'sim/erc32/interf.c')
-rw-r--r-- | sim/erc32/interf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index 63b3f38..ca1a29a 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -78,6 +78,8 @@ run_sim(sregs, icount, dis) init_stdio(); sregs->starttime = time(NULL); irq = 0; + if ((sregs->pc != 0) && (ebase.simtime == 0)) + boot_init(); while (!sregs->err_mode & (icount > 0)) { sregs->fhold = 0; |