aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/interf.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2015-03-17 22:02:41 +0100
committerMike Frysinger <vapier@gentoo.org>2015-03-28 03:00:19 -0400
commit102b920e11b6cd95addd59ea0eb08fac964fa8ad (patch)
tree7d0e005d17a7c9dcdd80e5dbbcbb9ed48b84c74e /sim/erc32/interf.c
parent5831e29bc1a17115b96141bf72fbc44200c6e014 (diff)
downloadgdb-102b920e11b6cd95addd59ea0eb08fac964fa8ad.zip
gdb-102b920e11b6cd95addd59ea0eb08fac964fa8ad.tar.gz
gdb-102b920e11b6cd95addd59ea0eb08fac964fa8ad.tar.bz2
sim/erc32: Use memory_iread() function for instruction fetching.
Use separate memory_iread() function for instruction fetching. Speeds up execution and allows addition of an MMU at a later stage.
Diffstat (limited to 'sim/erc32/interf.c')
-rw-r--r--sim/erc32/interf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c
index f3764f1..59fb635 100644
--- a/sim/erc32/interf.c
+++ b/sim/erc32/interf.c
@@ -95,9 +95,8 @@ run_sim(sregs, icount, dis)
if (sregs->pc == 0 || sregs->npc == 0)
printf ("bogus pc or npc\n");
#endif
- mexc = memory_read(sregs->asi, sregs->pc, &sregs->inst,
- 2, &sregs->hold);
-#if 1 /* DELETE ME! for debugging purposes only */
+ mexc = memory_iread (sregs->pc, &sregs->inst, &sregs->hold);
+#if 0 /* DELETE ME! for debugging purposes only */
if (sis_verbose > 2)
printf("pc %x, np %x, sp %x, fp %x, wm %x, cw %x, i %08x\n",
sregs->pc, sregs->npc,