VirtualBox

source: vbox/trunk/src/libs/openssl-3.3.2/include/crypto/riscv_arch.def@ 108403

最後變更 在這個檔案從108403是 108206,由 vboxsync 提交於 5 週 前

openssl-3.3.2: Exported all files to OSE and removed .scm-settings ​bugref:10757

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.7 KB
 
1/*
2 * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10/* X Macro Definitions for Specification of RISC-V Arch Capabilities */
11
12/*
13 * Each RISC-V capability ends up encoded as a single set bit in an array of
14 * words. When specifying a new capability, write a new RISCV_DEFINE_CAP
15 * statement, with an argument as the extension name in all-caps,
16 * second argument as the index in the array where the capability will be stored
17 * and third argument as the index of the bit to be used to encode the
18 * capability.
19 * RISCV_DEFINE_CAP(EXTENSION NAME, array index, bit index) */
20
21RISCV_DEFINE_CAP(ZBA, 0, 0)
22RISCV_DEFINE_CAP(ZBB, 0, 1)
23RISCV_DEFINE_CAP(ZBC, 0, 2)
24RISCV_DEFINE_CAP(ZBS, 0, 3)
25RISCV_DEFINE_CAP(ZBKB, 0, 4)
26RISCV_DEFINE_CAP(ZBKC, 0, 5)
27RISCV_DEFINE_CAP(ZBKX, 0, 6)
28RISCV_DEFINE_CAP(ZKND, 0, 7)
29RISCV_DEFINE_CAP(ZKNE, 0, 8)
30RISCV_DEFINE_CAP(ZKNH, 0, 9)
31RISCV_DEFINE_CAP(ZKSED, 0, 10)
32RISCV_DEFINE_CAP(ZKSH, 0, 11)
33RISCV_DEFINE_CAP(ZKR, 0, 12)
34RISCV_DEFINE_CAP(ZKT, 0, 13)
35RISCV_DEFINE_CAP(V, 0, 14)
36RISCV_DEFINE_CAP(ZVBB, 0, 15)
37RISCV_DEFINE_CAP(ZVBC, 0, 16)
38RISCV_DEFINE_CAP(ZVKB, 0, 17)
39RISCV_DEFINE_CAP(ZVKG, 0, 18)
40RISCV_DEFINE_CAP(ZVKNED, 0, 19)
41RISCV_DEFINE_CAP(ZVKNHA, 0, 20)
42RISCV_DEFINE_CAP(ZVKNHB, 0, 21)
43RISCV_DEFINE_CAP(ZVKSED, 0, 22)
44RISCV_DEFINE_CAP(ZVKSH, 0, 23)
45
46/*
47 * In the future ...
48 * RISCV_DEFINE_CAP(ZFOO, 0, 31)
49 * RISCV_DEFINE_CAP(ZBAR, 1, 0)
50 * ... and so on.
51 */
52
53#undef RISCV_DEFINE_CAP
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette