MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _test_cache_sync

Function _test_cache_sync

examples/utest/testcases/mm/test_cache_rv64.h:66–74  ·  view source on GitHub ↗

hot patching codes and test if the value can be seen by icache */

Source from the content-addressed store, hash-verified

64
65/* hot patching codes and test if the value can be seen by icache */
66static void _test_cache_sync(void)
67{
68 uassert_true(1 == _get1());
69 rt_memcpy(_get1, _get2, _get2 - _get1);
70 uassert_true(1 == _get1());
71 rt_hw_sync_cache_local(_get1, _get2 - _get1);
72 uassert_true(2 == _get1());
73 LOG_I("%s ok", __func__);
74}
75
76/* test clean operation should do and only effect the range specified by writing to a page */
77static void _test_dcache_clean(void)

Callers

nothing calls this directly

Calls 3

rt_memcpyFunction · 0.85
_get1Function · 0.70
rt_hw_sync_cache_localFunction · 0.50

Tested by

no test coverage detected