From 207dbf1071702952c701009f86a97f5c4cf3aae6 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Fri, 17 Feb 2023 06:28:30 +0100 Subject: [PATCH] fixes out of range access for register alias names --- gen_input/templates/interp/CORENAME.cpp.gtl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_input/templates/interp/CORENAME.cpp.gtl b/gen_input/templates/interp/CORENAME.cpp.gtl index 4b84520..ebedab0 100644 --- a/gen_input/templates/interp/CORENAME.cpp.gtl +++ b/gen_input/templates/interp/CORENAME.cpp.gtl @@ -92,7 +92,7 @@ protected: using compile_ret_t = virt_addr_t; using compile_func = compile_ret_t (this_class::*)(virt_addr_t &pc, code_word_t instr); - inline const char *name(size_t index){return traits::reg_aliases.at(index);} + inline const char *name(size_t index){return index::opcode_e decode_inst_id(code_word_t instr); virt_addr_t execute_inst(finish_cond_e cond, virt_addr_t start, uint64_t icount_limit) override;