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:
960a369
)
add comment on where reshape map is set up
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 3 Nov 2018 15:22:32 +0000
(15:22 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 3 Nov 2018 15:22:32 +0000
(15:22 +0000)
riscv/sv_insn_redirect.cc
patch
|
blob
|
history
diff --git
a/riscv/sv_insn_redirect.cc
b/riscv/sv_insn_redirect.cc
index bb3dd26d224a0fa1db521337121aadd7c66b6627..eacf96db7525c861a3568ce960c39cd0810eadb8 100644
(file)
--- a/
riscv/sv_insn_redirect.cc
+++ b/
riscv/sv_insn_redirect.cc
@@
-125,6
+125,10
@@
unsigned int sv_proc_t::remap(reg_spec_t const& spec)
if (shape == NULL) {
return offs;
}
+ // this table is pre-calculated by sv_shape_t::setup_map().
+ // changing the CSRs is the way to change the map.
+ // the map is still calculated even for the 1D case
+ // because it's a linear map
return (unsigned int)shape->map[offs] + shape->offs;
}