Debian Codegraph @

docs/html/dist.readme-riscv64.html

raw
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>12. README.riscv64</title>
5 <link rel="stylesheet" type="text/css" href="vg_basic.css">
6 <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
7 <link rel="home" href="index.html" title="Valgrind Documentation">
8 <link rel="up" href="dist.html" title="Valgrind Distribution Documents">
9 <link rel="prev" href="dist.readme-mips.html" title="11. README.mips">
10 <link rel="next" href="dist.readme-solaris.html" title="13. README.solaris">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <div><table class="nav" width="100%" cellspacing="3" cellpadding="3" border="0" summary="Navigation header"><tr>
14 <td width="22px" align="center" valign="middle"><a accesskey="p" href="dist.readme-mips.html"><img src="images/prev.png" width="18" height="21" border="0" alt="Prev"></a></td>
15 <td width="25px" align="center" valign="middle"><a accesskey="u" href="dist.html"><img src="images/up.png" width="21" height="18" border="0" alt="Up"></a></td>
16 <td width="31px" align="center" valign="middle"><a accesskey="h" href="index.html"><img src="images/home.png" width="27" height="20" border="0" alt="Up"></a></td>
17 <th align="center" valign="middle">Valgrind Distribution Documents</th>
18 <td width="22px" align="center" valign="middle"><a accesskey="n" href="dist.readme-solaris.html"><img src="images/next.png" width="18" height="21" border="0" alt="Next"></a></td>
19 </tr></table></div>
20 <div class="chapter">
21 <div class="titlepage"><div><div><h1 class="title">
22 <a name="dist.readme-riscv64"></a>12. README.riscv64</h1></div></div></div>
23 <div class="literallayout"><p><br>
24       <br>
25 Status<br>
26 ~~~~~~<br>
27 <br>
28 The RISC-V port targets the 64-bit RISC-V architecture and the Linux operating<br>
29 system. The port has been tested to work on real hardware and under QEMU.<br>
30 <br>
31 The following ISA base and extensions are currently supported:<br>
32 <br>
33 | Name         | Description                       | #Instrs | Notes    |<br>
34 | ------------ | --------------------------------- | ------- | -------- |<br>
35 | RV64I        | Base instruction set              |   52/52 |          |<br>
36 | RV64M        | Integer multiplication &amp; division |   12/13 | (1)      |<br>
37 | RV64A        | Atomic                            |   22/22 | (2)      |<br>
38 | RV64F        | Single-precision floating-point   |   30/30 | (3)      |<br>
39 | RV64D        | Double-precision floating-point   |   32/32 |          |<br>
40 | RV64Zicsr    | Control &amp; status register         |     3/6 | (4), (5) |<br>
41 | RV64Zifencei | Instruction-fetch fence           |     0/1 | (6)      |<br>
42 | RV64C        | Compressed                        |   37/37 |          |<br>
43 <br>
44 Notes:<br>
45 (1) MULHSU is not recognized.<br>
46 (2) LR and SC use the VEX "fallback" method which suffers from the ABA problem.<br>
47 (3) Operations do not check if the input operands are correctly NaN-boxed.<br>
48 (4) CSRRWI, CSRRSI and CSRRCI are not recognized.<br>
49 (5) Only registers fflags, frm and fcsr are accepted.<br>
50 (6) FENCE.I is not recognized.<br>
51 <br>
52 <br>
53 Implementation tidying-up/TODO notes<br>
54 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
55 <br>
56 * Implement a proper "non-fallback" method for LR and SC instructions.<br>
57 * Add a check for correct NaN-boxing of 32-bit floating-point operands.<br>
58 * Optimize instruction selection, in particular make more use of &lt;instr&gt;i<br>
59   variants.<br>
60 * Optimize handling of floating-point exceptions. Avoid helpers and calculate<br>
61   exception flags using the same instruction which produced an actual result.<br>
62 * Review register usage by the codegen.<br>
63 * Avoid re-use of Intel-constants CFIC_IA_SPREL and CFIC_IA_BPREL. Generalize<br>
64   them for all architectures or introduce same CFIC_RISCV64_ variants.<br>
65 * Get rid of the typedef of vki_modify_ldt_t in include/vki/vki-riscv64-linux.h.<br>
66 * Review if setup_client_stack() should expose AT_SYSINFO_EHDR to clients.<br>
67 * Make sure that the final exit sequence in run_a_thread_NORETURN() is not racy<br>
68   in regards to accessing the thread state.<br>
69 <br>
70     </p></div>
71 </div>
72 <div>
73 <br><table class="nav" width="100%" cellspacing="3" cellpadding="2" border="0" summary="Navigation footer">
74 <tr>
75 <td rowspan="2" width="40%" align="left">
76 <a accesskey="p" href="dist.readme-mips.html">&lt;&lt; 11. README.mips</a> </td>
77 <td width="20%" align="center"><a accesskey="u" href="dist.html">Up</a></td>
78 <td rowspan="2" width="40%" align="right"> <a accesskey="n" href="dist.readme-solaris.html">13. README.solaris &gt;&gt;</a>
79 </td>
80 </tr>
81 <tr><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td></tr>
82 </table>
83 </div>
84 </body>
85 </html>