This is the mail archive of the sid@sourceware.org mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Need information about passing command line arguments.


Hi,
One more request how to find GLOSS-COMPONENT, I tried --save-temps it
gives help information related to options mentioned below, please let us
know what is GLOSS-COMPONENT?

Regards,
Subbu.

./sid: option `--save-temps' requires an argument
Usage: sid OPTIONS [FILE] ...
Options:
-h, --help            Print this help
-v, --version         Print version
-n, --no-run          Load/check configuration but do not run simulation
-f FILE               Also read configuration FILE
-e LINE               Also do configuration LINE

All -b options are performed first, in sequence.
All -f/-e options are performed after -b options, in sequence.
FILE names supplied without -f are done last, in sequence.

--persistent          Run top-level loop indefinitely
--rc                  Pass stop code as simulator exit rc
--save-temps=FILE     Write config to FILE, '-' for stdout.
--wrap=COMPONENT      Turn on SID API tracing for COMPONENT
--verbose             Turn on run-time verbosity settings
--tksm                Add a an experimental Tk system monitor
--tksched             Add a simple Tk sim-scheduler controller
--board=BOARD         Instantiate builtin BOARD; remaining options
                      apply to most recently instantiated BOARD.
                      BOARD may be any of:
                         mm_MAX MeP custom board 'mm_MAX'

Board-specific options:
--cpu=CPU             Change board to use CPU
--load=FILE           Load FILE into board's memory
                      Sub options (comma separated):
                         bus=MAPPER   Load file into bus MAPPER
                         cpu=CPU      Set pc of cpu CPU on load
                         all-cpus     Shortcut for using all CPUs
--gloss               Give board a gloss (operating system)
--gdb=PORT            Give board a gdb stub on tcp port PORT
--engine=scache|pbb   Set board's engine type to scache or pbb
--sidrtc=ADDR         Add a real-time clock at address ADDR
--sidcodec=ADDR       Add an audio codec at address ADDR
--insn-count=COUNT    Set block of uninterrupted ticks for insns
--enable-warnings     Turn on CPU execution warnings
--final-insn-count    Turn on CPU instruction count summary
--trace-extract       Turn on CPU insn decode tracing
--trace-semantics     Turn on CPU execute tracing
--trace-disassemble   Turn on CPU execute disassembly
--trace-counter       Turn on CPU insn tracing
--trace-core          Turn on bus access tracing
--icache=TYPE         Put insn cache hw-cache-TYPE on board
--dcache=TYPE         Put data cache hw-cache-TYPE on board
                      e.g., direct/64kb/32, 4way/256kb/64/lru
--EB | --EL           Set powerup CPU mode to big/little endian
--gprof=FILE          Turn on GPROF profiling, collect in FILE
                      Sub option (comma separated):
                         cycles[=N]   collect data every N simulated
cycles,
                                      default N=1.
                         (if cycles is not specified, default to
                          collect data every Insn-count ticks.)
--memory-region=BASE,SIZE
                      Add RAM region from BASE to BASE+SIZE-1.
                      Sub options (comma separated):
                         bus=MAPPER   Attach memory to bus MAPPER
                         read-only    Make memory read-only
                         alias=BASE2  Add an alias at BASE2
                         file=NAME    Load/save memory from file
                         mmap         Memory map given file
                         latency=r:w  Set read, write latencies [0:0]
                         latency=rw   Set both latencies [0]
--ulog-level=LEVEL    Set the logging level for the current board
--ulog-mode=less|match|equal
                      Set the logging mode for the current board
--ulog-file=-|FILE    Set the log file name
--warn-write-to-code  Generate a warning when memory containing
executable code is written to
--no-warn-write-to-code  Do not generate a warning when memory
containing executable code is written to
--warn-write-to-rom   Generate a warning when read only memory is
written to
--allow-write-to-rom  Allow read only memory to be written to
--model-busses        Turn on bus arbitration modelling
--dsp-user-out        Display user written DSP trace output for
--trace-disassemble
--no-dsp-user-out     Display normal insn disassembly of DSP insns for
--trace-disassemble
--local-mem=START,SIZE,NAME[,api]
--global-mem=START,SIZE[,cached][,rom]
--shadow-mem=START,SIZE,BASE[,cached][,MODULE_NAME]
--biu-width=N
--dmac-channel-bitw=N
--dmac-rectangle
--dmac-no-rectangle
--insn=abs|ave|bit|clp|div|ldz|min|mul|sat
--no-insn=abs|ave|bit|clp|div|ldz|min|mul|sat
--imem-size=N
--dmem-size=N
--dmem-bank-num=N
--dmem-fixed-start-address
--dmem-no-fixed-start-address
--icache-size=N
--icache-line-size=N
--icache-way=N
--icache-cwf=on|off
--dcache-size=N
--dcache-line-size=N
--dcache-way=N
--dcache-cwf=on|off
--corrupt-caches
--intc-channel-bitw=N
--intc-level=N
--timer-channel-bitw=N

 note: most board-specific options can be used in board-neutral position
 where they are interpreted as session-specific or default settings.



-----Original Message-----
From: Frank Ch. Eigler [mailto:fche@redhat.com]
Sent: Thursday, January 12, 2006 2:39 AM
To: Subba Krishna M N
Cc: sid@sources.redhat.com
Subject: Re: Need information about passing command line arguments.

Hi -

On Wed, Jan 11, 2006 at 12:01:11PM +0530, mnskrishna@soc-soft.com wrote:
> [...]
> ./sid -board=mm_MAX -load=hello.x -INITTIME
> considering the above example please let me know how to pass -INITTIME
> to the hello.x
> [...]

The code in sid/main/mainDynamic.cxx does not appear able to pass
simulated command line arguments to the gloss component (the
"command-line" attribute) the same way that the sid/bsp/configrun-sid
perl front-end did.  You may be able to simulate it with the more
general "-e" option, something like this:

./sid -board=mm_MAX -load=hello.x \
     -e 'set GLOSS-COMPONENT command-line -INITTIME'

You'd have to figure out the right GLOSS-COMPONENT name though,
perhaps from a prior run with "--save-temps".

- FChE






The information contained in this e-mail message and in any annexure is
confidential to the  recipient and may contain privileged information. If you are not
the intended recipient, please notify the sender and delete the message along with
any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the
individual sender except where the sender specifically states them to be the views of
SoCrates Software India Pvt Ltd., Bangalore.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]