Esempio n. 1
0
void x86_uinst_list_dump(FILE *f)
{
	struct x86_uinst_t *uinst;
	int i;

	for (i = 0; i < list_count(x86_uinst_list); i++)
	{
		uinst = list_get(x86_uinst_list, i);
		fprintf(f, "  ");
		x86_uinst_dump(uinst, f);
	}
}
Esempio n. 2
0
void x86_uop_dump(struct x86_uop_t *uop, FILE *f)
{
	/* Fields */
	fprintf(f, "id=%lld, ", uop->id);
	fprintf(f, "eip=0x%x, ", uop->eip);
	fprintf(f, "spec_mode=%c, ", uop->specmode ? 't' : 'f');
	fprintf(f, "trace_cache=%c, ", uop->trace_cache ? 't' : 'f');

	/* Micro-instruction */
	fprintf(f, "uinst='");
	x86_uinst_dump(uop->uinst, f);
	fprintf(f, "'");
}
Esempio n. 3
0
File: uop.c Progetto: abhaykadam/vm
void uop_list_dump(struct list_t *uop_list, FILE *f)
{
	struct uop_t *uop;
	int i;
	
	for (i = 0; i < list_count(uop_list); i++)
	{
		uop = list_get(uop_list, i);
		fprintf(f, "%3d. ", i);
		x86_uinst_dump(uop->uinst, f);
		fprintf(f, "\n");
	}
}
Esempio n. 4
0
void x86_uop_linked_list_dump(struct linked_list_t *uop_list, FILE *f)
{
	struct x86_uop_t *uop;
	
	linked_list_head(uop_list);
	while (!linked_list_is_end(uop_list))
	{
		uop = linked_list_get(uop_list);
		fprintf(f, "%3d. ", linked_list_current(uop_list));
		x86_uinst_dump(uop->uinst, f);
		fprintf(f, "\n");
		linked_list_next(uop_list);
	}
}