source: trunk/IPs/systemC/processor/Morpheo/Script/nb_cpu.sh @ 139

Last change on this file since 139 was 138, checked in by rosiere, 14 years ago

1) add counters_t type for interface
2) fix in check load in load_store_unit
3) add parameters (but not yet implemented)
4) change environment and add script (distcc_env.sh ...)
5) add warning if an unser change rename flag with l.mtspr instruction
6) ...

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 483 bytes
Line 
1#!/bin/bash
2
3#-----------------------------------------------------------
4# $Id: nb_cpu.sh 138 2010-05-12 17:34:01Z rosiere $
5#-----------------------------------------------------------
6
7#-----[ nb_cpu ]----------------------------------------------
8function nb_cpu ()
9{
10    local FILE_CPUINFO=/proc/cpuinfo;
11    if test ! -f ${FILE_CPUINFO}; then
12        echo "\"${FILE_CPUINFO}\" don't exist."
13        usage;
14    fi;
15   
16    grep -c "processor" ${FILE_CPUINFO};
17}
18
19#-----[ Corps ]---------------------------------------------
20nb_cpu ${*}
Note: See TracBrowser for help on using the repository browser.