From: Luke Kenneth Casson Leighton Date: Sat, 3 Nov 2018 15:22:32 +0000 (+0000) Subject: add comment on where reshape map is set up X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a57465624472875b81a812c5362eb9d5e368318b;p=riscv-isa-sim.git add comment on where reshape map is set up --- diff --git a/riscv/sv_insn_redirect.cc b/riscv/sv_insn_redirect.cc index bb3dd26..eacf96d 100644 --- 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; }