diff --git a/include/interfaces/irdb/STARSInstruction.h b/include/interfaces/irdb/STARSInstruction.h index f106a94e502939a13847b49a88a60b48248a0ff6..59a750c83008c651d6b33beac526fc5696e213be 100644 --- a/include/interfaces/irdb/STARSInstruction.h +++ b/include/interfaces/irdb/STARSInstruction.h @@ -45,10 +45,10 @@ class STARS_IRDB_Instruction_t : public STARS_Instruction_t // see .cpp virtual uint16_t GetIDAOpcode(void) const; - virtual STARS_InstructionID_t GetNextInstructionID(void) + virtual STARS_InstructionID_t GetNextInstructionID(void) const { return STARS_InstructionID_t(irdb_insn->GetTarget()->GetBaseID()); } - virtual STARS_InstructionID_t GetTargetInstructionID(void) + virtual STARS_InstructionID_t GetTargetInstructionID(void) const { return STARS_InstructionID_t(irdb_insn->GetFallthrough()->GetBaseID()); } // jdh: what are features?