host_callback *sim_callback;
int
-run_sim(sregs, icount, dis)
- struct pstate *sregs;
- uint64 icount;
- int dis;
+run_sim(struct pstate *sregs, uint64 icount, int dis)
{
int mexc, irq;
}
SIM_DESC
-sim_open (kind, callback, abfd, argv)
- SIM_OPEN_KIND kind;
- struct host_callback_struct *callback;
- struct bfd *abfd;
- char * const *argv;
+sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *callback,
+ struct bfd *abfd, char * const *argv)
{
int argc = 0;
}
void
-sim_close(sd, quitting)
- SIM_DESC sd;
- int quitting;
+sim_close(SIM_DESC sd, int quitting)
{
exit_sim();
};
SIM_RC
-sim_load(sd, prog, abfd, from_tty)
- SIM_DESC sd;
- const char *prog;
- bfd *abfd;
- int from_tty;
+sim_load(SIM_DESC sd, const char *prog, bfd *abfd, int from_tty)
{
bfd_load (prog);
return SIM_RC_OK;
}
SIM_RC
-sim_create_inferior(sd, abfd, argv, env)
- SIM_DESC sd;
- struct bfd *abfd;
- char * const *argv;
- char * const *env;
+sim_create_inferior(SIM_DESC sd, bfd *abfd, char * const *argv,
+ char * const *env)
{
bfd_vma start_address = 0;
if (abfd != NULL)
}
int
-sim_store_register(sd, regno, value, length)
- SIM_DESC sd;
- int regno;
- unsigned char *value;
- int length;
+sim_store_register(SIM_DESC sd, int regno, unsigned char *value, int length)
{
int regval;
int
-sim_fetch_register(sd, regno, buf, length)
- SIM_DESC sd;
- int regno;
- unsigned char *buf;
- int length;
+sim_fetch_register(SIM_DESC sd, int regno, unsigned char *buf, int length)
{
get_regi(&sregs, regno, buf);
return -1;
}
void
-sim_info(sd, verbose)
- SIM_DESC sd;
- int verbose;
+sim_info(SIM_DESC sd, int verbose)
{
show_stat(&sregs);
}
int simstat = OK;
void
-sim_stop_reason(sd, reason, sigrc)
- SIM_DESC sd;
- enum sim_stop * reason;
- int *sigrc;
+sim_stop_reason(SIM_DESC sd, enum sim_stop *reason, int *sigrc)
{
switch (simstat) {
*/
static void
-flush_windows ()
+flush_windows (void)
{
int invwin;
int cwp;
}
void
-sim_do_command(sd, cmd)
- SIM_DESC sd;
- const char *cmd;
+sim_do_command(SIM_DESC sd, const char *cmd)
{
exec_cmd(&sregs, cmd);
}