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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [c6x/] [gensched.sh] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
#! /bin/sh
2
# Generate c6x-sched.md from c6x-sched.md.in
3
# The input file is passed as an argument.
4
 
5
# Copyright 2010, 2011 Free Software Foundation, Inc.
6
 
7
#This file is part of GCC.
8
 
9
#GCC is free software; you can redistribute it and/or modify
10
#it under the terms of the GNU General Public License as published by
11
#the Free Software Foundation; either version 3, or (at your option)
12
#any later version.
13
 
14
#GCC is distributed in the hope that it will be useful,
15
#but WITHOUT ANY WARRANTY; without even the implied warranty of
16
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
#GNU General Public License for more details.
18
 
19
#You should have received a copy of the GNU General Public License
20
#along with GCC; see the file COPYING3.  If not see
21
#<http://www.gnu.org/licenses/>.
22
 
23
echo ";; -*- buffer-read-only: t -*-"
24
echo ";; Generated automatically from c6x-sched.md.in by gensched.sh"
25
 
26
for cross in n y; do
27
    for side in 1 2; do
28
        tside=$side
29
        case $side in
30
            1) rf="a"; otherside=2 ;;
31
            2) rf="b"; otherside=1 ;;
32
        esac
33
        case $cross in
34
            y) cunit="+x$side"; tside=$otherside;;
35
            n) cunit="";;
36
        esac
37
        echo
38
        echo ";; Definitions for side $side, cross $cross"
39
        echo
40
        sed -e "s,_CROSS_,$cross,g" -e "s,_CUNIT_,$cunit,g" \
41
            -e "s,_N_,$side,g" -e "s,_RF_,$rf,g" -e "s,_NX_,$tside,g" \
42
            < $1
43
    done
44
done

powered by: WebSVN 2.1.0

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