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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [sh/] [sh3/] [v2_0/] [include/] [mod_regs_ubc.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//=============================================================================
2
//
3
//      mod_regs_ubc.h
4
//
5
//      UBC (user break controller) Module register definitions
6
//
7
//=============================================================================
8
//####ECOSGPLCOPYRIGHTBEGIN####
9
// -------------------------------------------
10
// This file is part of eCos, the Embedded Configurable Operating System.
11
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12
//
13
// eCos is free software; you can redistribute it and/or modify it under
14
// the terms of the GNU General Public License as published by the Free
15
// Software Foundation; either version 2 or (at your option) any later version.
16
//
17
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20
// for more details.
21
//
22
// You should have received a copy of the GNU General Public License along
23
// with eCos; if not, write to the Free Software Foundation, Inc.,
24
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
//
26
// As a special exception, if other files instantiate templates or use macros
27
// or inline functions from this file, or you compile this file and link it
28
// with other works to produce a work based on this file, this file does not
29
// by itself cause the resulting work to be covered by the GNU General Public
30
// License. However the source code for this file must still be made available
31
// in accordance with section (3) of the GNU General Public License.
32
//
33
// This exception does not invalidate any other reasons why a work based on
34
// this file might be covered by the GNU General Public License.
35
//
36
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
// at http://sources.redhat.com/ecos/ecos-license/
38
// -------------------------------------------
39
//####ECOSGPLCOPYRIGHTEND####
40
//=============================================================================
41
//#####DESCRIPTIONBEGIN####
42
//
43
// Author(s):   jskov
44
// Contributors:jskov
45
// Date:        2000-10-30
46
//
47
//####DESCRIPTIONEND####
48
//
49
//=============================================================================
50
 
51
//--------------------------------------------------------------------------
52
// User Break Control
53
#define CYGARC_REG_BRCR                 0xffffff98 // 16 bit (v1) / 32 bit
54
 
55
#define CYGARC_REG_BARA                 0xffffffb0 // 32 bit
56
#define CYGARC_REG_BAMRA                0xffffffb4 // 8 bit (v1) / 32 bit
57
#define CYGARC_REG_BBRA                 0xffffffb8 // 16 bit
58
#define CYGARC_REG_BASRA                0xffffffe4 // 8 bit
59
 
60
#define CYGARC_REG_BARB                 0xffffffa0 // 32 bit
61
#define CYGARC_REG_BAMRB                0xffffffa4 // 8 bit (v1) / 32 bit
62
#define CYGARC_REG_BASRB                0xffffffe8 // 8 bit
63
#define CYGARC_REG_BBRB                 0xffffffa8 // 16 bit
64
#define CYGARC_REG_BDRB                 0xffffff90 // 32 bit
65
#define CYGARC_REG_BDMRB                0xffffff94 // 32 bit
66
 
67
#ifdef CYGARC_SH_MOD_UBC
68
 
69
#if (CYGARC_SH_MOD_UBC == 1)
70
# define CYGARC_REG_BRCR_CMFA           0x8000 // condition match flag A
71
# define CYGARC_REG_BRCR_CMFB           0x4000 // condition match flag B
72
# define CYGARC_REG_BRCR_PCBA           0x0400 // post execute channel A
73
# define CYGARC_REG_BRCR_DBEB           0x0080 // data break enable B
74
# define CYGARC_REG_BRCR_PCBB           0x0040 // post execute channel B
75
# define CYGARC_REG_BRCR_SEQ            0x0008 // sequence condition select
76
# define CYGARC_REG_BRCR_ONE_STEP       (CYGARC_REG_BRCR_PCBA)
77
#else
78
# define CYGARC_REG_BRCR_BASMA          0x00200000 // asid not checked
79
# define CYGARC_REG_BRCR_BASMB          0x00100000
80
# define CYGARC_REG_BRCR_SCMFCA         0x00008000
81
# define CYGARC_REG_BRCR_SCMFCB         0x00004000
82
# define CYGARC_REG_BRCR_SCMFDA         0x00002000
83
# define CYGARC_REG_BRCR_SCMFDB         0x00001000
84
# define CYGARC_REG_BRCR_PCTE           0x00000800 // PC trace enable
85
# define CYGARC_REG_BRCR_PCBA           0x00000400 // post execute
86
# define CYGARC_REG_BRCR_DBEB           0x00000080 // data break
87
# define CYGARC_REG_BRCR_PCBB           0x00000040
88
# define CYGARC_REG_BRCR_SEQ            0x00000008 // A and B channel in sequence
89
# define CYGARC_REG_BRCR_ETBE           0x00000001 // execution count on B matches
90
# define CYGARC_REG_BRCR_ONE_STEP       (CYGARC_REG_BRCR_BASMA | CYGARC_REG_BRCR_PCBA)
91
#endif
92
 
93
 
94
#if (CYGARC_SH_MOD_UBC == 1)
95
# define CYGARC_REG_BAMRA_BASMA          0x04   // BASRA masked
96
# define CYGARC_REG_BAMRA_BARA_UNMASKED  0x00   // BARA not masked
97
# define CYGARC_REG_BAMRA_BARA_10BIT     0x01   // Lowest 10 bit masked
98
# define CYGARC_REG_BAMRA_BARA_12BIT     0x02   // Lowest 12 bit masked
99
# define CYGARC_REG_BAMRA_BARA_MASKED    0x03   // All bits masked
100
#else
101
// mask is fully configurable in other versions of the UBC
102
#endif
103
 
104
#define CYGARC_REG_BBRA_DFETCH          0x0020 // Break on DFETCH
105
#define CYGARC_REG_BBRA_IFETCH          0x0010 // Break on IFETCH
106
#define CYGARC_REG_BBRA_WRITE           0x0008 // Break on WRITE
107
#define CYGARC_REG_BBRA_READ            0x0004 // Break on READ
108
#define CYGARC_REG_BBRA_SIZE_LONG       0x0003 // Break on long access
109
#define CYGARC_REG_BBRA_SIZE_WORD       0x0002 // Break on word access
110
#define CYGARC_REG_BBRA_SIZE_BYTE       0x0001 // Break on byte access
111
#define CYGARC_REG_BBRA_SIZE_ANY        0x0000 // Break on any size
112
 
113
 
114
//----------------------------------------------------------------------------
115
// Other types
116
#if (CYGARC_SH_MOD_UBC == 2)
117
#define CYGARC_REG_BETR                 0xffffff9c // 16 bit
118
#define CYGARC_REG_BRSR                 0xffffffac // 32 bit
119
#define CYGARC_REG_BRDR                 0xffffffbc // 32 bit
120
 
121
#define CYGARC_REG_BBRA_DMA             0x0080 // Break on DMAC cycle
122
#define CYGARC_REG_BBRA_CPU             0x0040 // Break on CPU cycle
123
#endif
124
 
125
#endif // CYGARC_SH_MOD_UBC

powered by: WebSVN 2.1.0

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