target: e2k: Replace some panics with messages.

This commit is contained in:
Denis Drakhnia 2020-12-03 20:30:50 +02:00 committed by Denis Drakhnia
parent a6d8edd30f
commit 1c1db1a395
2 changed files with 7 additions and 3 deletions

View File

@ -972,14 +972,18 @@ static MemOp gen_mas(DisasContext *ctx, int chan, MemOp memop, TCGv_i64 addr)
if ((mas & 0x7) == 7) {
// TODO: special mas
e2k_tr_gen_exception(ctx, E2K_EXCP_ILLOPC);
// e2k_tr_gen_exception(ctx, E2K_EXCP_ILLOPC);
qemu_log_mask(LOG_UNIMP, "0x%lx: mas=0x%x is not implemented!\n",
ctx->pc, mas);
} else if (mas) {
int mod = extract8(mas, 0, 3);
// int dc = extract8(mas, 5, 2);
if (mod != 0) {
// TODO: mas modes
e2k_tr_gen_exception(ctx, E2K_EXCP_ILLOPC);
// e2k_tr_gen_exception(ctx, E2K_EXCP_ILLOPC);
qemu_log_mask(LOG_UNIMP, "0x%lx: mas=0x%x is not implemented!\n",
ctx->pc, mas);
}
memop |= GET_BIT(mas, 3) ? MO_BE : MO_LE;

View File

@ -448,7 +448,7 @@ static void gen_cs1(DisasContext *dc)
// my_printf ("trap = %d, ", trap);
}
abort();
qemu_log_mask(LOG_UNIMP, "0x%lx: wait is not implemented!\n", dc->pc);
// my_printf ("ma_c = %d, fl_c = %d, ld_c = %d, st_c = %d, all_e = %d, "
// "all_c = %d", ma_c, fl_c, ld_c, st_c, all_e, all_c);
} else if (opc == CALL) {