diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-26 11:08:31 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-28 09:06:16 +0100 |
commit | e1d7bf002efda1f6319bd8aa64ad1c9712103d54 (patch) | |
tree | 2bc5f9f3c1a2cda166b209a54cd493fd4ed47ee2 /testsuites/sptests/spcache01/spcache01.scn | |
parent | rtems: Use size_t for cache line size (diff) | |
download | rtems-e1d7bf002efda1f6319bd8aa64ad1c9712103d54.tar.bz2 |
rtems: Add cache size functions
Add rtems_cache_get_data_cache_size() and
rtems_cache_get_instruction_cache_size().
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/spcache01/spcache01.scn | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/sptests/spcache01/spcache01.scn b/testsuites/sptests/spcache01/spcache01.scn index c2f1eb6826..80139451ef 100644 --- a/testsuites/sptests/spcache01/spcache01.scn +++ b/testsuites/sptests/spcache01/spcache01.scn @@ -3,6 +3,9 @@ data cache flush and invalidate test data cache operations by line passed the test data cache operations by line passed the test (copy-back cache detected) data cache line size 32 bytes +data cache size 262144 bytes +data cache level 1 size 32768 bytes +data cache level 2 size 262144 bytes load 4096 bytes with flush entire data duration with normal cache 12660 ns duration with warm cache 2580 ns @@ -28,6 +31,9 @@ store 4096 bytes with invalidate multiple data duration with warm cache 2580 ns duration with invalidated cache 2640 ns instruction cache line size 32 bytes +instruction cache size 262144 bytes +instruction cache level 1 size 32768 bytes +instruction cache level 2 size 262144 bytes invalidate entire instruction duration with normal cache 5780 ns duration with warm cache 640 ns |