From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2561 invoked by alias); 12 Jan 2006 07:20:32 -0000 Received: (qmail 2553 invoked by uid 22791); 12 Jan 2006 07:20:31 -0000 X-Spam-Check-By: sourceware.org Received: from mail.soc-soft.com (HELO igateway.soc-soft.com) (202.56.254.199) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jan 2006 07:20:30 +0000 Received: from keys.soc-soft.com ([192.168.4.44]) by igateway.soc-soft.com with InterScan VirusWall; Thu, 12 Jan 2006 12:50:24 +0530 Received: from soc-mail.soc-soft.com ([192.168.4.25]) by keys.soc-soft.com (PGP Universal service); Thu, 12 Jan 2006 12:48:38 +0530 X-PGP-Universal: processed; by keys.soc-soft.com on Thu, 12 Jan 2006 12:48:38 +0530 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Need information about passing command line arguments. Date: Thu, 12 Jan 2006 07:20:00 -0000 Message-ID: <4BF47D56A0DD2346A1B8D622C5C5902C012B1CB7@soc-mail.soc-soft.com> From: To: , Cc: Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00005.txt.bz2 Hi=0D I tried the following option again I'm getting errors [root@fedora4 bin]# ./sid --board=3Dmm_MAX --load=3Dhello1.x -e 'set sid-io-stdio command-line -INITTIME' :1: component sid-io-stdio not found Configuration error. Aborting. Regards, Subbu -----Original Message----- From: Subba Krishna M N=0D Sent: Thursday, January 12, 2006 12:48 PM To: 'Frank Ch. Eigler' Cc: sid@sources.redhat.com Subject: FW: Need information about passing command line arguments. 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=0D 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 =3D ( "arm" =3D> "sw-gloss-arm/angel", "thumb" =3D> "sw-gloss-arm/angel", "x86" =3D> "sw-gloss-generic/libgloss", "mep" =3D> "sw-gloss-generic/libgloss", # INSERT NEW ENTRIES HERE "m32r" =3D> "sw-gloss-m32r/libgloss", "xstormy16" =3D> "sw-gloss-generic/libgloss", ); I tried with following commands I'm getting error like [root@fedora4 bin]# ./sid --board=3Dmm_MAX --load=3Dhello1.x -e 'set mep ommand-line -INITTIME' :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=3DFILE Write config to FILE, '-' for stdout. --wrap=3DCOMPONENT 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=3DBOARD 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=3DCPU Change board to use CPU --load=3DFILE Load FILE into board's memory Sub options (comma separated): bus=3DMAPPER Load file into bus MAPPER cpu=3DCPU Set pc of cpu CPU on load all-cpus Shortcut for using all CPUs --gloss Give board a gloss (operating system) --gdb=3DPORT Give board a gdb stub on tcp port PORT --engine=3Dscache|pbb Set board's engine type to scache or pbb --sidrtc=3DADDR Add a real-time clock at address ADDR --sidcodec=3DADDR Add an audio codec at address ADDR --insn-count=3DCOUNT 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=3DTYPE Put insn cache hw-cache-TYPE on board --dcache=3DTYPE 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=3DFILE Turn on GPROF profiling, collect in FILE Sub option (comma separated): cycles[=3DN] collect data every N simulated cycles, default N=3D1. (if cycles is not specified, default to collect data every Insn-count ticks.) --memory-region=3DBASE,SIZE Add RAM region from BASE to BASE+SIZE-1. Sub options (comma separated): bus=3DMAPPER Attach memory to bus MAPPER read-only Make memory read-only alias=3DBASE2 Add an alias at BASE2 file=3DNAME Load/save memory from file mmap Memory map given file latency=3Dr:w Set read, write latencies [0:0] latency=3Drw Set both latencies [0] --ulog-level=3DLEVEL Set the logging level for the current board --ulog-mode=3Dless|match|equal Set the logging mode for the current board --ulog-file=3D-|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=3DSTART,SIZE,NAME[,api] --global-mem=3DSTART,SIZE[,cached][,rom] --shadow-mem=3DSTART,SIZE,BASE[,cached][,MODULE_NAME] --biu-width=3DN --dmac-channel-bitw=3DN --dmac-rectangle --dmac-no-rectangle --insn=3Dabs|ave|bit|clp|div|ldz|min|mul|sat --no-insn=3Dabs|ave|bit|clp|div|ldz|min|mul|sat --imem-size=3DN --dmem-size=3DN --dmem-bank-num=3DN --dmem-fixed-start-address --dmem-no-fixed-start-address --icache-size=3DN --icache-line-size=3DN --icache-way=3DN --icache-cwf=3Don|off --dcache-size=3DN --dcache-line-size=3DN --dcache-way=3DN --dcache-cwf=3Don|off --corrupt-caches --intc-channel-bitw=3DN --intc-level=3DN --timer-channel-bitw=3DN 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]=0D 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=3Dmm_MAX -load=3Dhello.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=3Dmm_MAX -load=3Dhello.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 y= ou are not the intended recipient, please notify the sender and delete the message alo= ng with any annexure. You should not disclose, copy or otherwise use the informatio= n contained in the message or any annexure. Any views expressed in this e-mail are thos= e of the individual sender except where the sender specifically states them to be th= e views of SoCrates Software India Pvt Ltd., Bangalore.