* FW: Need information about passing command line arguments.
@ 2006-01-12 7:18 mnskrishna
0 siblings, 0 replies; 2+ messages in thread
From: mnskrishna @ 2006-01-12 7:18 UTC (permalink / raw)
To: fche; +Cc: sid
Hi,
The following information from the directory share/sidcomp
Please let me know which is th glob-component?
[root@fedora4 sidcomp]# ls
bridge-blt.blt hw-interrupt-arm_ref.txt hw-rtc-sid.txt
sid-io-fileio.txt
bridge-tcl.tcl hw-interrupt-cogent_cma222.txt
hw-uart-ns16550.txt sid-io-socket.txt
bridge-tcl.txt hw-interrupt-mep.txt
hw-visual-clock.tk sid-io-stdio.txt
bridge-tk.tk hw-lcd-char-display.txt
hw-visual-clock.txt sid-sched.txt
hw-cache.txt hw-lcd-hd44780u.txt hw-visual-lcd.tk
sid-visual-sched.tk
hw-cpu-mep.txt hw-lcd-t6963c.txt hw-visual-lcd.txt
sw-debug-gdb.txt
hw-debug-mep.txt hw-mapper-basic.txt
hw-visual-probe-bus.blt sw-glue-attribbank.txt
hw-disk-ide.txt hw-memory-flash.txt
hw-visual-probe-pin.tk sw-load-elf.txt
hw-dma-mep.txt hw-memory-ram_rom-basic.txt hw-visual-tty.tk
sw-profile-gprof.txt
hw-glue-bus-mux.txt hw-parport-ps_2.txt sid-api-trace.tcl
hw-glue-probe-bus.txt hw-remap_pause-arm_ref.txt
sid-control-cfgroot.txt
hw-glue-sequence.txt hw-rtc-ds1x42.txt
sid-control-tksm.tk
Regards,
Subbu.
-----Original Message-----
From: Subba Krishna M N
Sent: Thursday, January 12, 2006 12:41 PM
To: 'Frank Ch. Eigler'
Cc: sid@sources.redhat.com
Subject: FW: 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?
I got information about gloss-component in the configrun-sid file
%gloss_comptype = (
"arm" => "sw-gloss-arm/angel",
"thumb" => "sw-gloss-arm/angel",
"x86" => "sw-gloss-generic/libgloss",
"mep" => "sw-gloss-generic/libgloss",
# INSERT NEW ENTRIES HERE
"m32r" => "sw-gloss-m32r/libgloss",
"xstormy16" => "sw-gloss-generic/libgloss",
);
I tried with following commands I'm getting error like
[root@fedora4 bin]# ./sid --board=mm_MAX --load=hello1.x -e 'set mep
ommand-line -INITTIME'
<literal>:1: component mep not found
Configuration error. Aborting.
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* FW: Need information about passing command line arguments.
@ 2006-01-12 7:11 mnskrishna
0 siblings, 0 replies; 2+ messages in thread
From: mnskrishna @ 2006-01-12 7:11 UTC (permalink / raw)
To: fche; +Cc: sid
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?
I got information about gloss-component in the configrun-sid file
%gloss_comptype = (
"arm" => "sw-gloss-arm/angel",
"thumb" => "sw-gloss-arm/angel",
"x86" => "sw-gloss-generic/libgloss",
"mep" => "sw-gloss-generic/libgloss",
# INSERT NEW ENTRIES HERE
"m32r" => "sw-gloss-m32r/libgloss",
"xstormy16" => "sw-gloss-generic/libgloss",
);
I tried with following commands I'm getting error like
[root@fedora4 bin]# ./sid --board=mm_MAX --load=hello1.x -e 'set mep
ommand-line -INITTIME'
<literal>:1: component mep not found
Configuration error. Aborting.
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-12 7:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 7:18 FW: Need information about passing command line arguments mnskrishna
-- strict thread matches above, loose matches on Subject: below --
2006-01-12 7:11 mnskrishna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).