Skip to content

Commit 9a98570

Browse files
feat: add Ssdbltrp (Double Trap) extension definition (#1005)
Added YAML specification for Ssdbltrp extension version 1.0.0. Just definition part :) Related to issue #212 Signed-off-by: Sukuna0007Abhi <[email protected]>
1 parent d5051d1 commit 9a98570

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

spec/std/isa/ext/Ssdbltrp.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2025 Abhijit Das(Sukuna0007Abhi)
2+
# SPDX-License-Identifier: BSD-3-Clause-Clear
3+
4+
# yaml-language-server: $schema=../../../schemas/ext_schema.json
5+
6+
$schema: "ext_schema.json#"
7+
kind: extension
8+
name: Ssdbltrp
9+
long_name: Double trap for supervisor mode
10+
description: |
11+
The Ssdbltrp extension addresses a double trap in privilege modes lower than M.
12+
It enables HS-mode to invoke a critical error handler in a virtual machine on a double trap in VS-mode.
13+
It also allows M-mode to invoke a critical error handler in the OS/Hypervisor on a double trap in S/HS-mode.
14+
15+
The Ssdbltrp extension adds the `menvcfg.DTE` and the `sstatus.SDT` fields.
16+
If the hypervisor extension is additionally implemented, then the extension adds the
17+
`henvcfg.DTE` and the `vsstatus.SDT` fields.
18+
19+
When `menvcfg.DTE` is zero, the implementation behaves as though Ssdbltrp is not implemented.
20+
When Ssdbltrp is not implemented, `sstatus.SDT`, `vsstatus.SDT`, and `henvcfg.DTE` bits are read-only zero.
21+
type: privileged
22+
versions:
23+
- version: "1.0.0"
24+
state: ratified
25+
ratification_date: 2024-08

0 commit comments

Comments
 (0)