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

    Message

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

    From: cvs at opencores.org<cvs@o...>
    Date: Mon Oct 31 08:00:38 CET 2005
    Subject: [cvs-checkins] MODIFIED: or1k ...
    Top
    Date: 00/05/10 31:08:00

    Modified: or1k/or1ksim sim-cmd.c
    Log:
    Correct INT_MAX->INT32_MAX




    Revision Changes Path
    1.22 or1k/or1ksim/sim-cmd.c

    http://www.opencores.org/cvsweb.shtml/or1k/or1ksim/sim-cmd.c.diff?r1=1.21&r2=1.22

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: sim-cmd.c
    ===================================================================
    RCS file: /cvsroot/nogj/or1k/or1ksim/sim-cmd.c,v
    retrieving revision 1.21
    retrieving revision 1.22
    diff -u -b -r1.21 -r1.22
    --- sim-cmd.c 19 Oct 2005 23:10:57 -0000 1.21
    +++ sim-cmd.c 31 Oct 2005 07:00:38 -0000 1.22
    @@ -392,7 +392,7 @@
    if(runtime.cpu.instructions < to_insn_num) {
    /* Instruction count has not yet been reached, reschedule */
    long long int delta = to_insn_num - runtime.cpu.instructions;
    - SCHED_ADD(check_insn_exec, NULL, (delta > INT_MAX) ? INT_MAX : delta);
    + SCHED_ADD(check_insn_exec, NULL, (delta > INT32_MAX) ? INT32_MAX : delta);
    return;
    }
    handle_sim_command();
    @@ -424,7 +424,7 @@
    * may execute in only 1 cycle. check_insn_exec will check if the right
    * number of instructions have been executed. If not it will
    * reschedule. */
    - SCHED_ADD(check_insn_exec, NULL, (to_insn_num > INT_MAX) ? INT_MAX : to_insn_num);
    + SCHED_ADD(check_insn_exec, NULL, (to_insn_num > INT32_MAX) ? INT32_MAX : to_insn_num);
    } else {
    /* The user wants to see the execution dumps. Schedule a task to show
    * it to him after each cycle */



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