OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0/] [or1ksim/] [sim-cmd.c] - Diff between revs 1588 and 1593

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1588 Rev 1593
Line 591... Line 591...
#else
#else
  char b2[500];
  char b2[500];
  static char prev_str[500] = { 0 };
  static char prev_str[500] = { 0 };
#endif
#endif
 
 
 
  runtime.sim.iprompt_run = 1;
 
 
  /* Make sure that check_insn_exec is not left hanging in the scheduler (and
  /* Make sure that check_insn_exec is not left hanging in the scheduler (and
   * breaking the sim when the user doesn't want it to break). */
   * breaking the sim when the user doesn't want it to break). */
  SCHED_FIND_REMOVE(check_insn_exec, NULL);
  SCHED_FIND_REMOVE(check_insn_exec, NULL);
  SCHED_FIND_REMOVE(print_insn_exec, NULL);
  SCHED_FIND_REMOVE(print_insn_exec, NULL);
 
 
Line 671... Line 673...
 
 
      for(cur_cmd = sim_commands; cur_cmd->name; cur_cmd++) {
      for(cur_cmd = sim_commands; cur_cmd->name; cur_cmd++) {
        if(!strcmp(cur_cmd->name, argv[0])) {
        if(!strcmp(cur_cmd->name, argv[0])) {
          if(cur_cmd->cmd_handle(argc, argv)) {
          if(cur_cmd->cmd_handle(argc, argv)) {
            runtime.sim.iprompt = 0;
            runtime.sim.iprompt = 0;
 
            runtime.sim.iprompt_run = 0;
            return;
            return;
          }
          }
          break;
          break;
        }
        }
      }
      }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.