From 9df46609e2674bf3403cecc049ea16b83dea026b Mon Sep 17 00:00:00 2001 From: Nandkumar Joshi Date: Tue, 25 Aug 2020 11:41:38 +0530 Subject: [PATCH] Add example for Sifive L2 hardware prefetcher. --- .gitmodules | 3 +++ README.md | 2 ++ doc/sphinx/contents.rst | 3 +++ software/example-l2pf | 1 + wit-manifest.json | 5 +++++ 5 files changed, 14 insertions(+) create mode 160000 software/example-l2pf diff --git a/.gitmodules b/.gitmodules index 29e965951..0f4713323 100644 --- a/.gitmodules +++ b/.gitmodules @@ -157,3 +157,6 @@ [submodule "software/example-l2pm"] path = software/example-l2pm url = https://github.com/sifive/example-l2pm.git +[submodule "software/example-l2pf"] + path = software/example-l2pf + url = https://github.com/sifive/example-l2pf.git diff --git a/README.md b/README.md index f818e8d01..d8aa787c4 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,8 @@ operating systems to RISC-V. - Demonstrates usage of the RISC-V hardware performance counter APIs. - example-l2pm - Demonstrates usage of Sifive L2 performance monitor counter APIs to capture L2 cache event logs. + - example-l2pf + - Example for usage and measuring effectiveness of SiFive L2 Prefetcher. - example-freertos-minimal - A simple FreeRTOS skeleton to build your FreeRTOS application. - example-freertos-blinky diff --git a/doc/sphinx/contents.rst b/doc/sphinx/contents.rst index 58ad5176a..98e3f8438 100644 --- a/doc/sphinx/contents.rst +++ b/doc/sphinx/contents.rst @@ -289,3 +289,6 @@ The example programs can be found under the ``software/`` directory. - example-l2pm - Demonstrates usage of Sifive L2 performance monitor counter APIs to capture L2 cache event logs. + +- example-l2pf + - Example for usage and measuring effectiveness of SiFive L2 Prefetcher. diff --git a/software/example-l2pf b/software/example-l2pf new file mode 160000 index 000000000..983a3f6fe --- /dev/null +++ b/software/example-l2pf @@ -0,0 +1 @@ +Subproject commit 983a3f6fe57c2a83e46d79c7aa62c6efd2dde584 diff --git a/wit-manifest.json b/wit-manifest.json index 0121ec2b5..36a979ba0 100644 --- a/wit-manifest.json +++ b/wit-manifest.json @@ -263,5 +263,10 @@ "commit": "817e1b54223da438f7d242b1b824cb9900f5d756", "name": "example-l2pm", "source": "git@github.com:sifive/example-l2pm.git" + }, + { + "commit": "983a3f6fe57c2a83e46d79c7aa62c6efd2dde584", + "name": "example-l2pf", + "source": "git@github.com:sifive/example-l2pm.git" } ]