mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-25 18:55:23 -06:00
Flush caches between writing and verifying test data.
Mostly we write and read large chunks of data which will make it likely that the data is no longer in the cache when we come to verify it. But this is not always true, and in any case, we shouldn't rely on it.
This commit is contained in:
@@ -78,4 +78,10 @@ testword_t random(int my_vcpu);
|
||||
*/
|
||||
void calculate_chunk(testword_t **start, testword_t **end, int my_vcpu, int segment, size_t chunk_align);
|
||||
|
||||
/*
|
||||
* Flushes the CPU caches. If SMP is enabled, synchronises the threads before
|
||||
* and after issuing the cache flush instruction.
|
||||
*/
|
||||
void flush_caches(int my_vcpu);
|
||||
|
||||
#endif // TEST_HELPER_H
|
||||
|
||||
Reference in New Issue
Block a user