Hi Emin,

You can create any kind of cache hierarchy you like using the Python
configuration files. This is a chapter of the Learning gem5 book about
adding caches: http://learning.gem5.org/book/part1/cache_config.html.

I'm not sure how much we can help with #2. How are you making sure the
function you added is being called? I would probably make an event to call
it and then schedule the event in the startup() function. See this chapter
on events: http://learning.gem5.org/book/part2/events.html

Cheers,
Jason

On Sat, Feb 4, 2017 at 6:11 AM Muhammed Emin Öztürk <
[email protected]> wrote:

> Dear Friends
>
>     I need to create data corruption in L2 . For my research experiment I
> need to define reasonable cache which is something
> a reasonable cache configuration (i.e., cache size, block size,
> associativity) – something reasonably representative of machine common
> today.
>
> I am new at Gem5 so sorry for asking these trivial question
>
>    1- ) How can i define my cache features ?
>
>    2 -) I tried to modify source code src/mem/cache/cache.hh and cache.cc
> . I added modifyblock funtion which corrupt data in block however i did not
> see effect in output.
>
> Do you have idea about this ?
>
> Best
>
> Emin..
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to