Currently, the v1-patch is not yet capable of achieving the desired effect. It still requires passing the number of variable arguments to the helper_print() function:
static bool gen_lr(DisasContext *ctx, arg_atomic *a, MemOp mop)
{
TCGv src1;
decode_save_opc(ctx, 0);
src1 = get_address(ctx, a->rs1, 0);
gen_helper_print(2, "src1 %x\n", src1);
...
return true;
}
Regards,
Chao
