From 3f3b8b461d8df12947ec6fecd2578f72f834bf5b Mon Sep 17 00:00:00 2001 From: Arjan Bink Date: Fri, 26 Aug 2022 09:21:47 +0200 Subject: [PATCH] Corrected instruction set extension chapter with info on custom WFE instruction Signed-off-by: Arjan Bink --- .../source/control_status_registers.rst | 2 -- .../source/instruction_set_extensions.rst | 21 ++++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/docs/user_manual/source/control_status_registers.rst b/docs/user_manual/source/control_status_registers.rst index ed6c59e95..04db40a85 100644 --- a/docs/user_manual/source/control_status_registers.rst +++ b/docs/user_manual/source/control_status_registers.rst @@ -141,7 +141,6 @@ instruction exception. .. table:: Control and Status Register Map (additional custom CSRs) :name: Control and Status Register Map (additional custom CSRs) - +---------------+-------------------+-----------+--------------------------+---------------------------------------------------------+ | CSR Address | Name | Privilege | Parameter | Description | +===============+===================+===========+==========================+=========================================================+ @@ -156,7 +155,6 @@ instruction exception. | 0xBFC | ``secureseed2`` | MRW | | Seed for LFSR2 | +---------------+-------------------+-----------+--------------------------+---------------------------------------------------------+ - .. table:: Control and Status Register Map (Unprivileged and User-Level CSRs) :name: Control and Status Register Map (Unprivileged and User-Level CSRs) :class: no-scrollbar-table diff --git a/docs/user_manual/source/instruction_set_extensions.rst b/docs/user_manual/source/instruction_set_extensions.rst index 330730ba0..96b37ab6b 100644 --- a/docs/user_manual/source/instruction_set_extensions.rst +++ b/docs/user_manual/source/instruction_set_extensions.rst @@ -3,4 +3,23 @@ CORE-V Instruction Set Extensions ================================= -|corev| does support custom security configuration related CSRs as described in :ref:`cs-registers`. No custom instructions are present. +Custom instructions +------------------- + +|corev| supports the custom instruction(s) listed in :numref:`Custom instructions`. + +.. table:: Custom instructions + :name: Custom instructions + :widths: 10 10 80 + :class: no-scrollbar-table + + +-------------------------+-------------+--------------------------------------------------+ + | Custom instruction | Encoding | Description | + +=========================+=============+==================================================+ + | ``wfe`` | 0x8C00_0073 | Wait For Event, see :ref:`wfe`. | + +-------------------------+-------------+--------------------------------------------------+ + +Custom CSRs +----------- + +|corev| supports the custom CSRs listed in :numref:`Control and Status Register Map (additional custom CSRs)`.