记录硬件的作用,比如缓冲失效。
如果发生D - cache失效(处理器无法在D - cache中找到数据),那么发出一个中断,让相应的寄存器可以通过增加它的值记录这一事件。
If a D-cache miss (the processor fails to find data in the D-cache) occurs, an interrupt is raised so that the corresponding register can record this event by increasing its value.
TestCase扩展了assert,后者定义了一些有用的static assert {something}(. .)方法,以检查和记录失效。
TestCase extends assert, which defines a number of useful static assert {something} (..) methods for checking and logging failures.
应用推荐