Changeset 1f4e738 in rtems-testing


Ignore:
Timestamp:
Apr 5, 2015, 3:12:14 PM (4 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
ecf18b5
Parents:
6094703
Message:

lm32_evr: Fix

Location:
sim-scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/Makefile

    r6094703 r1f4e738  
    100100
    101101### TSIM Simulator BSPs
    102 erc32: gdb-sim-run.in gdb-sim.in erc32.in tsim-support
    103         ./mkrun yes SPARC sparc erc32
     102erc32-tsim: gdb-sim-run.in gdb-sim.in erc32-tsim.in tsim-support
     103        ./mkrun yes SPARC sparc erc32-tsim
    104104
    105105leon2-tsim: gdb-sim-run.in gdb-sim.in leon2-tsim.in tsim-support
  • sim-scripts/lm32_evr.in

    r6094703 r1f4e738  
    22#  lm32/lm32_evr Support Using Simulator in GDB
    33#
     4
     5generate_lm32_evr_conf()
     6{
     7cat >lm32_evr.conf <<EOF
     8/lm32cpu
     9/lm32uart/reg 0x80006000 0x100
     10/lm32uart > int int0 /lm32cpu
     11/lm32timer/reg 0x80002000 0x80
     12/lm32timer > int int1 /lm32cpu
     13EOF
     14
     15# GDB does not support attaching a second instance
     16# /lm32timer/reg 0x8000a000 0x80
     17# /lm32timer > int int3 /lm32cpu
     18}
    419
    520runARGS()
     
    1126#       --hw-device "/lm32timer > int int1 /lm32cpu"
    1227#       --memory-region 0x08000000,0x4000000' ${1}
    13 cat >lm32_evr.conf <<EOF
    14 lm32cpu
    15 lm32uart/reg 0x80006000 0x100
    16 /lm32uart > int int0 /lm32cpu
    17 lm32timer/reg 0x80002000 0x80
    18 /lm32timer > int int1 /lm32cpu
    19 --memory-region  0x08000000,0x4000000
    20 EOF
    21   echo "--hw-file lm32_evr.conf ${1}"
     28  generate_lm32_evr_conf
     29  echo "--hw-file lm32_evr.conf --memory-region  0x08000000,0x4000000 ${1}"
    2230}
    2331
     
    2634bspGenerateGDBCommands()
    2735{
     36# tar sim --hw-device lm32cpu \\
     37#   --hw-device "lm32uart/reg 0x80006000 0x100" \\
     38#   --hw-device "/lm32uart > int int0 /lm32cpu" \\
     39#   --hw-device "lm32timer/reg 0x80002000 0x80" \\
     40#   --hw-device "/lm32timer > int int1 /lm32cpu" \\
     41#   --memory-region 0x08000000,0x4000000
     42generate_lm32_evr_conf
    2843cat <<EOF
    29 tar sim --hw-device lm32cpu \\
    30   --hw-device "lm32uart/reg 0x80006000 0x100" \\
    31   --hw-device "/lm32uart > int int0 /lm32cpu" \\
    32   --hw-device "lm32timer/reg 0x80002000 0x80" \\
    33   --hw-device "/lm32timer > int int1 /lm32cpu" \\
    34   --memory-region 0x08000000,0x4000000
     44tar sim --hw-file lm32_evr.conf --memory-region  0x08000000,0x4000000
    3545load
    3646EOF
Note: See TracChangeset for help on using the changeset viewer.