/[gxemul]/trunk/src/devices/dev_mp.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_mp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 27 by dpavlin, Mon Oct 8 16:19:56 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_mp.c,v 1.36 2006/05/04 19:49:25 debug Exp $   *  $Id: dev_mp.c,v 1.37 2006/07/01 21:15:46 debug Exp $
29   *   *
30   *  This is a fake multiprocessor (MP) device. It can be useful for   *  This is a fake multiprocessor (MP) device. It can be useful for
31   *  theoretical experiments, but probably bares no resemblance to any   *  theoretical experiments, but probably bares no resemblance to any
# Line 229  DEVICE_ACCESS(mp) Line 229  DEVICE_ACCESS(mp)
229    
230          case DEV_MP_NCYCLES:          case DEV_MP_NCYCLES:
231                  /*                  /*
232                   *  Return approximately the number of cycles executed                   *  Return _approximately_ the number of cycles executed
233                   *  in this machine.  (This value is not updated for each                   *  in this machine.
234                   *  instruction.)                   *
235                     *  Note: At the moment, this is actually the number of
236                     *  instructions executed on CPU 0.
237                     *
238                     *  (This value is not updated for each instruction.)
239                   */                   */
240                  odata = cpu->machine->ncycles;                  odata = cpu->machine->ninstrs;
241                  break;                  break;
242    
243          default:          default:

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26