diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2015-03-17 22:02:41 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-28 03:00:19 -0400 |
commit | 102b920e11b6cd95addd59ea0eb08fac964fa8ad (patch) | |
tree | 7d0e005d17a7c9dcdd80e5dbbcbb9ed48b84c74e /sim/erc32/sis.h | |
parent | 5831e29bc1a17115b96141bf72fbc44200c6e014 (diff) | |
download | gdb-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/sis.h')
-rw-r--r-- | sim/erc32/sis.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/erc32/sis.h b/sim/erc32/sis.h index 74466ae..d21bf49 100644 --- a/sim/erc32/sis.h +++ b/sim/erc32/sis.h @@ -169,6 +169,7 @@ extern void sim_halt (void); extern void exit_sim (void); extern void init_stdio (void); extern void restore_stdio (void); +extern int memory_iread (uint32 addr, uint32 *data, int32 *ws); extern int memory_read (int32 asi, uint32 addr, uint32 *data, int32 sz, int32 *ws); extern int memory_write (int32 asi, uint32 addr, uint32 *data, @@ -179,6 +180,7 @@ extern int sis_memory_read (uint32 addr, char *data, uint32 length); /* func.c */ +extern struct pstate sregs; extern void set_regi (struct pstate *sregs, int32 reg, uint32 rval); extern void get_regi (struct pstate *sregs, int32 reg, char *buf); |