Line 367... |
Line 367... |
fprintf (stderr, "WARNING: Test with id %x not registered. Ignoring.\n", id);
|
fprintf (stderr, "WARNING: Test with id %x not registered. Ignoring.\n", id);
|
close(fd); /* kill the connection */
|
close(fd); /* kill the connection */
|
return;
|
return;
|
}
|
}
|
if(config.sim.verbose)
|
if(config.sim.verbose)
|
printf ("\nConnection with test (id %x) established.\n", id);
|
PRINTF ("\nConnection with test (id %x) established.\n", id);
|
}
|
}
|
}
|
}
|
|
|
static int write_packet (unsigned long id, unsigned long data) {
|
static int write_packet (unsigned long id, unsigned long data) {
|
struct vapi_handler *t = find_handler (id);
|
struct vapi_handler *t = find_handler (id);
|
Line 486... |
Line 486... |
fprintf (stderr, "WARNING: server_port = 0, shutting down VAPI\n");
|
fprintf (stderr, "WARNING: server_port = 0, shutting down VAPI\n");
|
runtime.vapi.enabled = 0;
|
runtime.vapi.enabled = 0;
|
return 1;
|
return 1;
|
}
|
}
|
if (server_fd = get_server_socket("or1ksim", "tcp", runtime.vapi.server_port))
|
if (server_fd = get_server_socket("or1ksim", "tcp", runtime.vapi.server_port))
|
printf("VAPI Server started on port %d\n", runtime.vapi.server_port);
|
PRINTF("VAPI Server started on port %d\n", runtime.vapi.server_port);
|
else {
|
else {
|
perror ("Connection");
|
perror ("Connection");
|
return 1;
|
return 1;
|
}
|
}
|
|
|
Line 573... |
Line 573... |
for (; t; t = t->next) {
|
for (; t; t = t->next) {
|
if (!t->fd) {
|
if (!t->fd) {
|
numu++;
|
numu++;
|
if (printout) {
|
if (printout) {
|
if ( t->num_ids == 1 )
|
if ( t->num_ids == 1 )
|
printf (" 0x%x", t->base_id);
|
PRINTF (" 0x%x", t->base_id);
|
else
|
else
|
printf (" 0x%x..0x%x", t->base_id, t->base_id + t->num_ids - 1);
|
PRINTF (" 0x%x..0x%x", t->base_id, t->base_id + t->num_ids - 1);
|
}
|
}
|
}
|
}
|
}
|
}
|
return numu;
|
return numu;
|
}
|
}
|