projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7089a7d
)
add comment
sv
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 28 Jun 2019 12:44:01 +0000
(13:44 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 28 Jun 2019 12:44:01 +0000
(13:44 +0100)
riscv/sv.cc
patch
|
blob
|
history
diff --git
a/riscv/sv.cc
b/riscv/sv.cc
index 3116ebbfb1ce707d624338822976e2442636ccd7..f5b049cad51cad6eb022cf8baa5a74dda8a91ae2 100644
(file)
--- a/
riscv/sv.cc
+++ b/
riscv/sv.cc
@@
-20,6
+20,9
@@
uint8_t maxelwidth(uint8_t wid1, uint8_t wid2)
return std::max(wid1, wid2);
}
+/* convenience routines to map from compact 8-bit to 16-bit format,
+ * for use in new VBLOCK format
+ */
void sv_regmap_8to16(union sv_reg_csr_entry8 const& r8,
union sv_reg_csr_entry &r16)
{