class EmulProfile {
public:
EmulProfile (int req_id, const std::string &prof_path)
- : req_id_ (req_id), prof_path_ (prof_path) {
+ : req_id_ (req_id), exec_seq_(0), prof_path_ (prof_path) {
memset (&profile_, '\x00', sizeof (profile_));
}
triv2_get_tops (ctx, &tops);
std::string cmd_path (ctx->prefix_share);
- cmd_path += "/mRPsim/triv-4.0.0.cmd";
+ if (model->getVersion () == 3) {
+ if (tops == 2)
+ cmd_path += "/mRPsim/triv2_2tops.cmd";
+ else
+ cmd_path += "/mRPsim/triv2.cmd";
+ } else if (model->getVersion () == 4) {
+ cmd_path += "/mRPsim/triv-4.0.0.cmd";
+ } else {
+ std::cerr << "Invalid model version: " << model->getVersion () << std::endl;
+ delete[] segt;
+ return -EINVAL;
+ }
int req_id = in->req_id;
std::string prof_path (ctx->prefix_profile);