e2k: Add stub for pref op.

This commit is contained in:
Denis Drakhnia 2021-02-08 22:17:37 +02:00 committed by Alibek Omarov
parent aa0d172f6e
commit d9a98c1a39
2 changed files with 6 additions and 3 deletions

View File

@ -624,6 +624,9 @@ static inline void gen_cs0(DisasContext *ctx)
ctx->ct.type = CT_IBRANCH;
ctx->ct.u.target = ctx->pc + cs0->ibranch.sdisp;
break;
case CS0_PREF:
/* prefetch code */
break;
case CS0_DISP: {
uint64_t ctpr = ctpr_new_disp(ctx, &cs0->disp);
gen_set_ctpr(cs0->disp.ctpr, ctpr);

View File

@ -3263,7 +3263,7 @@ static void check_args(Alopf alopf, Instr *instr)
}
}
static void gen_alop_simple(Instr *instr, uint32_t op)
static void gen_alop_simple(Instr *instr, uint32_t op, const char *name)
{
DisasContext *ctx = instr->ctx;
int chan = instr->chan;
@ -4102,7 +4102,7 @@ static void gen_alop_simple(Instr *instr, uint32_t op)
case OP_QPFMSAS:
case OP_QPFMASD:
case OP_QPFMSAD:
e2k_todo_illop(ctx, "unimplemented %d", op); break;
e2k_todo_illop(ctx, "unimplemented %d (%s)", op, name); break;
}
}
@ -4650,7 +4650,7 @@ static void gen_alop(Instr *instr, Alop *alop)
gen_lcomb_i64(instr, alop->op);
break;
default:
gen_alop_simple(instr, alop->op);
gen_alop_simple(instr, alop->op, alop->name);
break;
}