From fa82a508244b5611b839a77f03c02abf7c044801 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Wed, 17 Jul 2024 17:24:17 +0200 Subject: [PATCH] fixes typo in templates --- gen_input/templates/asmjit/CORENAME.cpp.gtl | 6 +++--- gen_input/templates/llvm/CORENAME.cpp.gtl | 4 ++-- gen_input/templates/tcc/CORENAME.cpp.gtl | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gen_input/templates/asmjit/CORENAME.cpp.gtl b/gen_input/templates/asmjit/CORENAME.cpp.gtl index eeb4fe5..76a3d45 100644 --- a/gen_input/templates/asmjit/CORENAME.cpp.gtl +++ b/gen_input/templates/asmjit/CORENAME.cpp.gtl @@ -181,9 +181,9 @@ private: /**************************************************************************** * end opcode definitions ****************************************************************************/ - continuation_e illegal_intruction(virt_addr_t &pc, code_word_t instr, jit_holder& jh ) { + continuation_e illegal_instruction(virt_addr_t &pc, code_word_t instr, jit_holder& jh ) { x86::Compiler& cc = jh.cc; - cc.comment(fmt::format("illegal_intruction{:#x}:",pc.val).c_str()); + cc.comment(fmt::format("illegal_instruction{:#x}:",pc.val).c_str()); gen_sync(jh, PRE_SYNC, instr_descr.size()); pc = pc + ((instr & 3) == 3 ? 4 : 2); gen_instr_prologue(jh); @@ -275,7 +275,7 @@ continuation_e vm_impl::gen_single_inst_behavior(virt_addr_t &pc, unsigned ++inst_cnt; auto f = decode_instr(root, instr); if (f == nullptr) - f = &this_class::illegal_intruction; + f = &this_class::illegal_instruction; return (this->*f)(pc, instr, jh); } template diff --git a/gen_input/templates/llvm/CORENAME.cpp.gtl b/gen_input/templates/llvm/CORENAME.cpp.gtl index d5cb4f4..447c720 100644 --- a/gen_input/templates/llvm/CORENAME.cpp.gtl +++ b/gen_input/templates/llvm/CORENAME.cpp.gtl @@ -184,7 +184,7 @@ private: /**************************************************************************** * end opcode definitions ****************************************************************************/ - std::tuple illegal_intruction(virt_addr_t &pc, code_word_t instr, BasicBlock *bb) { + std::tuple illegal_instruction(virt_addr_t &pc, code_word_t instr, BasicBlock *bb) { this->gen_sync(iss::PRE_SYNC, instr_descr.size()); this->builder.CreateStore(this->builder.CreateLoad(this->get_typeptr(traits::NEXT_PC), get_reg_ptr(traits::NEXT_PC), true), get_reg_ptr(traits::PC), true); @@ -296,7 +296,7 @@ vm_impl::gen_single_inst_behavior(virt_addr_t &pc, unsigned int &inst_cnt, ++inst_cnt; auto f = decode_instr(root, instr); if (f == nullptr) { - f = &this_class::illegal_intruction; + f = &this_class::illegal_instruction; } return (this->*f)(pc, instr, this_block); } diff --git a/gen_input/templates/tcc/CORENAME.cpp.gtl b/gen_input/templates/tcc/CORENAME.cpp.gtl index 40db6d4..78a45ed 100644 --- a/gen_input/templates/tcc/CORENAME.cpp.gtl +++ b/gen_input/templates/tcc/CORENAME.cpp.gtl @@ -185,7 +185,7 @@ private: /**************************************************************************** * end opcode definitions ****************************************************************************/ - compile_ret_t illegal_intruction(virt_addr_t &pc, code_word_t instr, tu_builder& tu) { + compile_ret_t illegal_instruction(virt_addr_t &pc, code_word_t instr, tu_builder& tu) { vm_impl::gen_sync(tu, iss::PRE_SYNC, instr_descr.size()); pc = pc + ((instr & 3) == 3 ? 4 : 2); gen_raise_trap(tu, 0, 2); // illegal instruction trap @@ -290,7 +290,7 @@ vm_impl::gen_single_inst_behavior(virt_addr_t &pc, unsigned int &inst_cnt, ++inst_cnt; auto f = decode_instr(root, instr); if (f == nullptr) { - f = &this_class::illegal_intruction; + f = &this_class::illegal_instruction; } return (this->*f)(pc, instr, tu); }