Skip to content
Snippets Groups Projects
Commit ef45841b authored by Horst Schirmeier's avatar Horst Schirmeier
Browse files

MemAccess aspect: only save rmw_address if MEMREAD/MEMWRITE is enabled

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1456 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
parent e4570d95
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,9 @@ aspect MemAccess { ...@@ -129,7 +129,9 @@ aspect MemAccess {
advice execution (read_methods_RMW()) : before () advice execution (read_methods_RMW()) : before ()
{ {
#if defined(CONFIG_EVENT_MEMREAD) || defined(CONFIG_EVENT_MEMWRITE)
rmw_address = *(tjp->arg<1>()); rmw_address = *(tjp->arg<1>());
#endif
#ifdef CONFIG_EVENT_MEMREAD #ifdef CONFIG_EVENT_MEMREAD
fail::simulator.onMemoryAccess( fail::simulator.onMemoryAccess(
*(tjp->arg<1>()), sizeof(*(tjp->result())), false, *(tjp->arg<1>()), sizeof(*(tjp->result())), false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment