OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [doc/] [or1ksim.info] - Diff between revs 460 and 472

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 460 Rev 472
Line 330... Line 330...
`-t'
`-t'
`--trace'
`--trace'
     Dump instruction just executed and any register/memory location
     Dump instruction just executed and any register/memory location
     chaged after each instruction (one line per instruction).
     chaged after each instruction (one line per instruction).
 
 
 
`--trace-physical'
 
`--trace-virtual'
 
     When tracing instructions, show the physical address
 
     (`--trace-physical') and/or the virtual address
 
     (`--trace-virtual') of the instruction being executed.  Both flags
 
     may be specified, in which case both physical and virtual
 
     addresses are shown, physical first.
 
 
 
          Note: Either or both flags may be specified without
 
          `--trace', to indicate how addresses should be shown if
 
          subsequently enabled by a `SIGUSER1' signal or `l.nop 8'
 
          opcode (*note Trace Generation: Trace Generation.).
 
 
`-f FILE'
`-f FILE'
`--file=FILE'
`--file=FILE'
     Read configuration commands from the specified file, looking first
     Read configuration commands from the specified file, looking first
     in the current directory, and otherwise in the `$HOME/.or1k'
     in the current directory, and otherwise in the `$HOME/.or1k'
     directory.  If this argument is not specified, the file `sim.cfg'
     directory.  If this argument is not specified, the file `sim.cfg'
Line 517... Line 530...
2.4 Trace Generation
2.4 Trace Generation
====================
====================
 
 
An execution trace can be generated at run time with options passed by
An execution trace can be generated at run time with options passed by
the command line, or via the operating system's signal passing
the command line, or via the operating system's signal passing
mechanism.
mechanism, or by `l.nop' opcodes in an application program.
 
 
The following, passed at run time, can be used to create an execution
The following flag can be used to create an execution dump.
dump.
 
 
 
`-t'
`-t'
`--trace'
`--trace'
     Dump instruction just executed and any register/memory location
     Dump instruction just executed and any register/memory location
     chaged after each instruction (one line per instruction).
     changed after each instruction (one line per instruction).  Each
 
     line starts with either "S" or "U" to indicate whether the
 
     processor was in supervisor or user mode _when the instruction
 
     completed_.  It is worth bearing in mind that tracing happens at
 
     completion of instruction execution and shows the state at that
 
     time.
 
 
Passing a signal `SIGUSR1' while the simulator is running toggles trace
Passing a signal `SIGUSR1' while the simulator is running toggles trace
generation. This can be done with the following command, assuming
generation. This can be done with the following command, assuming
Or1ksim's executable name is `or32-elf-sim':
Or1ksim's executable name is `or32-elf-sim':
 
 
Line 545... Line 562...
command to toggle execution trace generation:
command to toggle execution trace generation:
 
 
     ps a | grep or32-elf-sim
     ps a | grep or32-elf-sim
     kill -SIGUSR1 _process-number_
     kill -SIGUSR1 _process-number_
 
 
 
Tracing can also be enabled and disabled from within a target program
 
using the `l.nop 8' and `l.nop 9' opcodes to enable and disable tracing
 
respectively.
 
 
 
By default tracing will show the virtual address of each instruction
 
traced.  This may be controlled by two options, `--trace-physical' to
 
show the physical address and/or `--trace-virtual' to show the virtual
 
address. If neither is specified, the virtual address is shown.
 
 
 
     Note: Either or both flags may be specified without `--trace', to
 
     indicate how addresses should be shown if subsequently enabled by a
 
     `SIGUSER1' signal or `l.nop 8' opcode.
 
 


File: or1ksim.info,  Node: Simulator Library,  Next: Ethernet TUN/TAP Interface,  Prev: Trace Generation,  Up: Usage
File: or1ksim.info,  Node: Simulator Library,  Next: Ethernet TUN/TAP Interface,  Prev: Trace Generation,  Up: Usage
 
 
2.5 Simulator Library
2.5 Simulator Library
=====================
=====================
Line 3843... Line 3873...
[index]
[index]
* Menu:
* Menu:
 
 
* --cumulative:                          Profiling Utility.   (line  26)
* --cumulative:                          Profiling Utility.   (line  26)
* --debug-config:                        Standalone Simulator.
* --debug-config:                        Standalone Simulator.
                                                              (line  86)
                                                              (line  99)
* --disable-all-tests:                   Configuring the Build.
* --disable-all-tests:                   Configuring the Build.
                                                              (line 105)
                                                              (line 105)
* --disable-arith-flag:                  Configuring the Build.
* --disable-arith-flag:                  Configuring the Build.
                                                              (line 118)
                                                              (line 118)
* --disable-debug:                       Configuring the Build.
* --disable-debug:                       Configuring the Build.
Line 3871... Line 3901...
* --enable-ethphy:                       Configuring the Build.
* --enable-ethphy:                       Configuring the Build.
                                                              (line  58)
                                                              (line  58)
* --enable-execution:                    Configuring the Build.
* --enable-execution:                    Configuring the Build.
                                                              (line  37)
                                                              (line  37)
* --enable-mprofile:                     Standalone Simulator.
* --enable-mprofile:                     Standalone Simulator.
                                                              (line 120)
                                                              (line 133)
* --enable-ov-flag:                      Configuring the Build.
* --enable-ov-flag:                      Configuring the Build.
                                                              (line 132)
                                                              (line 132)
* --enable-profile:                      Standalone Simulator.
* --enable-profile:                      Standalone Simulator.
                                                              (line 117)
                                                              (line 130)
* --enable-profiling:                    Configuring the Build.
* --enable-profiling:                    Configuring the Build.
                                                              (line  29)
                                                              (line  29)
* --enable-range-stats:                  Configuring the Build.
* --enable-range-stats:                  Configuring the Build.
                                                              (line  91)
                                                              (line  91)
* --enable-unsigned-xori:                Configuring the Build.
* --enable-unsigned-xori:                Configuring the Build.
                                                              (line  68)
                                                              (line  68)
* --file:                                Standalone Simulator.
* --file:                                Standalone Simulator.
                                                              (line  44)
                                                              (line  57)
* --filename:                            Memory Profiling Utility.
* --filename:                            Memory Profiling Utility.
                                                              (line  51)
                                                              (line  51)
* --generate:                            Profiling Utility.   (line  34)
* --generate:                            Profiling Utility.   (line  34)
* --group:                               Memory Profiling Utility.
* --group:                               Memory Profiling Utility.
                                                              (line  47)
                                                              (line  47)
Line 3897... Line 3927...
                                                              (line  22)
                                                              (line  22)
* --help (profiling utility):            Profiling Utility.   (line  22)
* --help (profiling utility):            Profiling Utility.   (line  22)
* --interactive:                         Standalone Simulator.
* --interactive:                         Standalone Simulator.
                                                              (line  25)
                                                              (line  25)
* --memory:                              Standalone Simulator.
* --memory:                              Standalone Simulator.
                                                              (line  70)
                                                              (line  83)
* --mode:                                Memory Profiling Utility.
* --mode:                                Memory Profiling Utility.
                                                              (line  26)
                                                              (line  26)
* --nosrv:                               Standalone Simulator.
* --nosrv:                               Standalone Simulator.
                                                              (line  52)
                                                              (line  65)
* --quiet <1>:                           Profiling Utility.   (line  30)
* --quiet <1>:                           Profiling Utility.   (line  30)
* --quiet:                               Standalone Simulator.
* --quiet:                               Standalone Simulator.
                                                              (line  29)
                                                              (line  29)
* --report-memory-errors:                Standalone Simulator.
* --report-memory-errors:                Standalone Simulator.
                                                              (line  91)
                                                              (line 104)
* --srv:                                 Standalone Simulator.
* --srv:                                 Standalone Simulator.
                                                              (line  60)
                                                              (line  73)
* --strict-npc:                          Standalone Simulator.
* --strict-npc:                          Standalone Simulator.
                                                              (line 100)
                                                              (line 113)
* --trace <1>:                           Trace Generation.    (line  15)
* --trace <1>:                           Trace Generation.    (line  14)
* --trace:                               Standalone Simulator.
* --trace:                               Standalone Simulator.
                                                              (line  39)
                                                              (line  39)
 
* --trace-physical <1>:                  Trace Generation.    (line  44)
 
* --trace-physical:                      Standalone Simulator.
 
                                                              (line  44)
 
* --trace-virtual <1>:                   Trace Generation.    (line  44)
 
* --trace-virtual:                       Standalone Simulator.
 
                                                              (line  44)
* --verbose:                             Standalone Simulator.
* --verbose:                             Standalone Simulator.
                                                              (line  33)
                                                              (line  33)
* --version:                             Standalone Simulator.
* --version:                             Standalone Simulator.
                                                              (line  17)
                                                              (line  17)
* --version (memory profiling utility):  Memory Profiling Utility.
* --version (memory profiling utility):  Memory Profiling Utility.
                                                              (line  17)
                                                              (line  17)
* --version (profiling utility):         Profiling Utility.   (line  17)
* --version (profiling utility):         Profiling Utility.   (line  17)
* -c:                                    Profiling Utility.   (line  26)
* -c:                                    Profiling Utility.   (line  26)
* -d:                                    Standalone Simulator.
* -d:                                    Standalone Simulator.
                                                              (line  86)
                                                              (line  99)
* -f <1>:                                Memory Profiling Utility.
* -f <1>:                                Memory Profiling Utility.
                                                              (line  51)
                                                              (line  51)
* -f:                                    Standalone Simulator.
* -f:                                    Standalone Simulator.
                                                              (line  44)
                                                              (line  57)
* -g <1>:                                Memory Profiling Utility.
* -g <1>:                                Memory Profiling Utility.
                                                              (line  47)
                                                              (line  47)
* -g:                                    Profiling Utility.   (line  34)
* -g:                                    Profiling Utility.   (line  34)
* -h:                                    Standalone Simulator.
* -h:                                    Standalone Simulator.
                                                              (line  21)
                                                              (line  21)
Line 3941... Line 3977...
* -i:                                    Standalone Simulator.
* -i:                                    Standalone Simulator.
                                                              (line  25)
                                                              (line  25)
* -m <1>:                                Memory Profiling Utility.
* -m <1>:                                Memory Profiling Utility.
                                                              (line  26)
                                                              (line  26)
* -m:                                    Standalone Simulator.
* -m:                                    Standalone Simulator.
                                                              (line  70)
                                                              (line  83)
* -q <1>:                                Profiling Utility.   (line  30)
* -q <1>:                                Profiling Utility.   (line  30)
* -q:                                    Standalone Simulator.
* -q:                                    Standalone Simulator.
                                                              (line  29)
                                                              (line  29)
* -t <1>:                                Trace Generation.    (line  15)
* -t <1>:                                Trace Generation.    (line  14)
* -t:                                    Standalone Simulator.
* -t:                                    Standalone Simulator.
                                                              (line  39)
                                                              (line  39)
* -V:                                    Standalone Simulator.
* -V:                                    Standalone Simulator.
                                                              (line  33)
                                                              (line  33)
* -v:                                    Standalone Simulator.
* -v:                                    Standalone Simulator.
Line 4343... Line 4379...
* l.nop 3 (printf, now obsolete):        l.nop Support.       (line  22)
* l.nop 3 (printf, now obsolete):        l.nop Support.       (line  22)
* l.nop 4 (putc):                        l.nop Support.       (line  29)
* l.nop 4 (putc):                        l.nop Support.       (line  29)
* l.nop 5 (reset statistics counters):   l.nop Support.       (line  34)
* l.nop 5 (reset statistics counters):   l.nop Support.       (line  34)
* l.nop 6 (get clock ticks):             l.nop Support.       (line  37)
* l.nop 6 (get clock ticks):             l.nop Support.       (line  37)
* l.nop 7 (get picoseconds per cycle):   l.nop Support.       (line  41)
* l.nop 7 (get picoseconds per cycle):   l.nop Support.       (line  41)
* l.nop 8 (turn on tracing):             l.nop Support.       (line  45)
* l.nop 8 (turn off tracing):            Trace Generation.    (line  40)
 
* l.nop 8 (turn on tracing) <1>:         l.nop Support.       (line  45)
 
* l.nop 8 (turn on tracing):             Trace Generation.    (line  40)
* l.nop 9 (turn off tracing):            l.nop Support.       (line  48)
* l.nop 9 (turn off tracing):            l.nop Support.       (line  48)
* l.nop opcode effects:                  l.nop Support.       (line   6)
* l.nop opcode effects:                  l.nop Support.       (line   6)
* library version of Or1ksim:            Simulator Library.   (line   6)
* library version of Or1ksim:            Simulator Library.   (line   6)
* license for Or1ksim:                   GNU Free Documentation License.
* license for Or1ksim:                   GNU Free Documentation License.
                                                              (line   6)
                                                              (line   6)
Line 4547... Line 4585...
                                                              (line  28)
                                                              (line  28)
* regression testing:                    Regression Testing.  (line   6)
* regression testing:                    Regression Testing.  (line   6)
* Remote Serial Protocol:                Debug Interface Configuration.
* Remote Serial Protocol:                Debug Interface Configuration.
                                                              (line  20)
                                                              (line  20)
* Remote Serial Protocol, --nosrv:       Standalone Simulator.
* Remote Serial Protocol, --nosrv:       Standalone Simulator.
                                                              (line  52)
                                                              (line  65)
* Remote Serial Protocol, --srv:         Standalone Simulator.
* Remote Serial Protocol, --srv:         Standalone Simulator.
                                                              (line  60)
                                                              (line  73)
* report_interrupt:                      Concepts.            (line  20)
* report_interrupt:                      Concepts.            (line  20)
* reset (Interactive CLI):               Interactive Command Line.
* reset (Interactive CLI):               Interactive Command Line.
                                                              (line  63)
                                                              (line  63)
* reset hooks:                           Concepts.            (line  13)
* reset hooks:                           Concepts.            (line  13)
* reset the simulator (Interactive CLI): Interactive Command Line.
* reset the simulator (Interactive CLI): Interactive Command Line.
Line 4793... Line 4831...
Node: Configuring the Build1762
Node: Configuring the Build1762
Node: Build and Install7902
Node: Build and Install7902
Node: Known Issues8668
Node: Known Issues8668
Node: Usage9723
Node: Usage9723
Node: Standalone Simulator10007
Node: Standalone Simulator10007
Node: Profiling Utility14567
Node: Profiling Utility15151
Node: Memory Profiling Utility15473
Node: Memory Profiling Utility16057
Node: Trace Generation16833
Node: Trace Generation17417
Node: Simulator Library18075
Node: Simulator Library19602
Node: Ethernet TUN/TAP Interface28507
Node: Ethernet TUN/TAP Interface30034
Node: Setting Up a Persistent TAP device29612
Node: Setting Up a Persistent TAP device31139
Node: Establishing a Bridge30287
Node: Establishing a Bridge31814
Node: Opening the Firewall31970
Node: Opening the Firewall33497
Node: Disabling Ethernet Filtering32461
Node: Disabling Ethernet Filtering33988
Node: Networking from OpenRISC Linux and BusyBox33086
Node: Networking from OpenRISC Linux and BusyBox34613
Node: Tearing Down a Bridge34748
Node: Tearing Down a Bridge36275
Node: l.nop Support35491
Node: l.nop Support37018
Node: Configuration37001
Node: Configuration38528
Node: Configuration File Format37613
Node: Configuration File Format39140
Node: Configuration File Preprocessing37998
Node: Configuration File Preprocessing39525
Node: Configuration File Syntax38295
Node: Configuration File Syntax39822
Node: Simulator Configuration41080
Node: Simulator Configuration42607
Node: Simulator Behavior41371
Node: Simulator Behavior42898
Node: Verification API Configuration45952
Node: Verification API Configuration47479
Node: CUC Configuration47892
Node: CUC Configuration49419
Node: Core OpenRISC Configuration49884
Node: Core OpenRISC Configuration51411
Node: CPU Configuration50386
Node: CPU Configuration51913
Node: Memory Configuration54505
Node: Memory Configuration56032
Node: Memory Management Configuration61227
Node: Memory Management Configuration62754
Node: Cache Configuration63604
Node: Cache Configuration65131
Node: Interrupt Configuration65990
Node: Interrupt Configuration67517
Node: Power Management Configuration67823
Node: Power Management Configuration69350
Node: Branch Prediction Configuration69100
Node: Branch Prediction Configuration70627
Node: Debug Interface Configuration70460
Node: Debug Interface Configuration71987
Node: Peripheral Configuration72803
Node: Peripheral Configuration74330
Node: Memory Controller Configuration73429
Node: Memory Controller Configuration74956
Node: UART Configuration77209
Node: UART Configuration78736
Node: DMA Configuration80728
Node: DMA Configuration82255
Node: Ethernet Configuration82595
Node: Ethernet Configuration84122
Node: GPIO Configuration87874
Node: GPIO Configuration89401
Node: Display Interface Configuration89507
Node: Display Interface Configuration91034
Node: Frame Buffer Configuration91816
Node: Frame Buffer Configuration93343
Node: Keyboard Configuration93680
Node: Keyboard Configuration95207
Node: Disc Interface Configuration95918
Node: Disc Interface Configuration97445
Node: Generic Peripheral Configuration101022
Node: Generic Peripheral Configuration102549
Node: Interactive Command Line103317
Node: Interactive Command Line104844
Node: Verification API110291
Node: Verification API111818
Node: Code Internals114721
Node: Code Internals116248
Node: Coding Conventions115304
Node: Coding Conventions116831
Node: Global Data Structures119731
Node: Global Data Structures121258
Node: Concepts122388
Node: Concepts123915
Ref: Output Redirection122533
Ref: Output Redirection124060
Ref: Interrupts Internal123071
Ref: Interrupts Internal124598
Node: Internal Debugging124224
Node: Internal Debugging125751
Node: Regression Testing124748
Node: Regression Testing126275
Node: GNU Free Documentation License128537
Node: GNU Free Documentation License130064
Node: Index150944
Node: Index152471


End Tag Table
End Tag Table

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.