hot patching codes and test if the value can be seen by icache */
| 64 | |
| 65 | /* hot patching codes and test if the value can be seen by icache */ |
| 66 | static 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 */ |
| 77 | static void _test_dcache_clean(void) |
nothing calls this directly
no test coverage detected