[PTLsim-devel] [PATCH] Buggy decoding of cachelevel information for prefetches
Stephan Diestelhorst
Fri Sep 14 10:04:49 EDT 2007
Hi,
there is a bug with decoding the prefetch instructions:
The cachelevel is written into the datatype field, rather than into the
cachelevel field of the TransOp, as the datatype is omitted from the call to
operand_load in decode_fast , line 824 and decode_complex, line 1687.
Although I believe that one could overload the field like that, it is the
cachelevel entry that is later passed on to the caches!
This bug has been present in releases 221 and 220, the attached patch should
fix them! Note, that this will not change anything operational, as the
cachelevel is not yet accounted for in the caches prefetcher.
Signed-off by stephan.diestelhorst at amd.com
Thanks,
Stephan
--
Stephan Diestelhorst, AMD Operating System Research Center
stephan.diestelhorst at amd.com, Tel. (AMD: 8-4903)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptlsim_fix_prefetch_decoding_cachelevel.diff
Type: text/x-diff
Size: 897 bytes
Desc: not available
Url : https://ptlsim.org/pipermail/ptlsim-devel/attachments/20070914/5097adad/attachment.bin
More information about the PTLsim-devel mailing list