Hi,

While I'm not sure I can directly answer your question, I know there's been
significant changes recently to the tag structure in the caches to support
creating new compressed caches. See this set of changesets (some of which
have been merged) in gerrit (our code review site).
https://gem5-review.googlesource.com/c/public/gem5/+/9741 (Note: supporting
sector caches is one step towards supporting compressed caches.)

Cheers,
Jason

On Sat, May 19, 2018 at 12:20 AM Srajan Khare <rsk...@gmail.com> wrote:

> Hi friends,
>
> I have been implementing Cache Compression algorithm in gem5.
> So in order to tap data for all the writes into L3 cache I have been using
> handleFill() function in cache.cc file. I have been using following command
> to transfer data in compressed format into L3 cache.
>
> ---------------*Code snippet*-----------------
>
> //Only for L3 cache
> uint8_t *dataofCacheLine;
>
> memcpy(dataOfCacheLine, pkt->getConstPtr<uint8_t>(), blkSize);
>
> compr_Info = compressionAlgo (dataOfCacheLine, .................,
> .................);
>
> //compr_Info contains compressed data and new size.
> //compressed data is then transferred into blk->data in the following way
>
> memcpy(blk->data, compr_info.comprData, compr_info.comprSize);
>
> --------------------------------------------
>
> Doing this leads to SIGABRT signal which terminates the execution with a
> panic ("Tried to read unmapped address 0x100000000a8"). I debugged it with
> gdb and log files and got myself zero'd down to error in memcpy statement.
>
> Could any of you let me know why there is a crash due to second memcpy
> statement provided compressed data I am storing is consistent with the
> actual data referenced by the block?
> Does any addressing gets disturbed when I am doing it like this? If Yes,
> could you please give me some inputs on this??
>
> Thanks a lot in advance!
>
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to