LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: =?unknown-8bit?Q?Gy=F6rgy?= 'nog' Jeney<nog@s...>
    Date: Fri Apr 22 16:44:31 CEST 2005
    Subject: [openrisc] [or1ksim #79] DR sim-cmd.c warnings
    Top
    Hi,

    I failed to notice these last time round, this fixes them.

    ChangeLog:
    * The `break' and `stall' commands don't work correctly in the recompiler (yet).
    -------------- next part --------------
    diff -uPr --unidirectional-new-file ./sim-cmd.c /home/nog/or1ksim-ac/sim-cmd.c
    --- ./sim-cmd.c 2005-03-31 16:37:29.000000000 +0200
    +++ /home/nog/or1ksim-ac/sim-cmd.c 2005-04-18 20:43:52.000000000 +0200
    @@ -328,6 +328,10 @@

    static int sim_cmd_break(int argc, char **argv) /* set/clear breakpoint */
    {
    +#if DYNAMIC_EXECUTION
    + PRINTF("Setting simulator breakpoints is not support with the recompiler\n");
    + return 0;
    +#else
    char *p;
    oraddr_t addr;
    struct label_entry *l;
    @@ -347,6 +351,7 @@
    }
    set_insnbrkpoint(addr);
    return 0;
    +#endif
    }

    static int sim_cmd_r(int argc, char **argv) /* dump regs */
    @@ -453,10 +458,15 @@

    static int sim_cmd_stall(int argc, char **argv) /* Added by CZ 210801 */
    {
    +#if DYNAMIC_EXECUTION
    + PRINTF("Can't stall the cpu with the dynamic recompiler\n");
    + return 0;
    +#else
    set_stall_state (1);
    runtime.sim.iprompt = 0;
    runtime.sim.hush = 1;
    return 1;
    +#endif
    }

    static int sim_cmd_stats(int argc, char **argv) /* stats */

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.