From a57465624472875b81a812c5362eb9d5e368318b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 3 Nov 2018 15:22:32 +0000 Subject: [PATCH] add comment on where reshape map is set up --- riscv/sv_insn_redirect.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.30.2