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
This commit is contained in:
hsc
2012-07-16 18:21:09 +00:00
parent e4570d95bd
commit ef45841b91

View File

@ -129,7 +129,9 @@ aspect MemAccess {
advice execution (read_methods_RMW()) : before ()
{
#if defined(CONFIG_EVENT_MEMREAD) || defined(CONFIG_EVENT_MEMWRITE)
rmw_address = *(tjp->arg<1>());
#endif
#ifdef CONFIG_EVENT_MEMREAD
fail::simulator.onMemoryAccess(
*(tjp->arg<1>()), sizeof(*(tjp->result())), false,