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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [h8300/] [arch/] [current/] [include/] [h8300_stub.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#ifndef CYGONCE_HAL_H8300_STUB_H
2
#define CYGONCE_HAL_H8300_STUB_H
3
//========================================================================
4
//
5
//      h8300_stub.h
6
//
7
//      H8/300-specific definitions for generic stub
8
//
9
//========================================================================
10
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
11
// -------------------------------------------                              
12
// This file is part of eCos, the Embedded Configurable Operating System.   
13
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
14
//
15
// eCos is free software; you can redistribute it and/or modify it under    
16
// the terms of the GNU General Public License as published by the Free     
17
// Software Foundation; either version 2 or (at your option) any later      
18
// version.                                                                 
19
//
20
// eCos is distributed in the hope that it will be useful, but WITHOUT      
21
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
22
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
23
// for more details.                                                        
24
//
25
// You should have received a copy of the GNU General Public License        
26
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
27
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
28
//
29
// As a special exception, if other files instantiate templates or use      
30
// macros or inline functions from this file, or you compile this file      
31
// and link it with other works to produce a work based on this file,       
32
// this file does not by itself cause the resulting work to be covered by   
33
// the GNU General Public License. However the source code for this file    
34
// must still be made available in accordance with section (3) of the GNU   
35
// General Public License v2.                                               
36
//
37
// This exception does not invalidate any other reasons why a work based    
38
// on this file might be covered by the GNU General Public License.         
39
// -------------------------------------------                              
40
// ####ECOSGPLCOPYRIGHTEND####                                              
41
//========================================================================
42
//#####DESCRIPTIONBEGIN####
43
//
44
// Author(s):     yoshinori sato
45
// Contributors:  yoshinori sato
46
// Date:          2002-02-13
47
// Purpose:       
48
// Description:   H8/300-specific definitions for generic stub
49
// Usage:         
50
//
51
//####DESCRIPTIONEND####
52
//
53
//========================================================================
54
 
55
#ifdef __cplusplus
56
extern "C" {
57
#endif
58
 
59
#ifdef CYGPKG_HAL_H8300_H8300H
60
#define NUMREGS     10
61
 
62
#define NUMREGBYTES (4*10)
63
 
64
enum regnames {
65
  ER0,ER1,ER2,ER3,ER4,ER5,ER6,
66
  SP, CCR,PC
67
};
68
#endif
69
 
70
#ifdef CYGPKG_HAL_H8300_H8S
71
#define NUMREGS     11
72
 
73
#define NUMREGBYTES (4*11)
74
 
75
enum regnames {
76
  ER6,ER5,ER4,ER3,ER2,ER1,ER0,
77
  SP, CCR,PC ,EXR
78
};
79
#endif
80
 
81
#define REGSIZE( _x_ ) (4)
82
 
83
typedef unsigned long target_register_t;
84
 
85
 
86
typedef enum regnames regnames_t;
87
 
88
/* Given a trap value TRAP, return the corresponding signal. */
89
extern int __computeSignal (unsigned int trap_number);
90
 
91
/* Return the SPARC trap number corresponding to the last-taken trap. */
92
extern int __get_trap_number (void);
93
 
94
/* Return the currently-saved value corresponding to register REG. */
95
extern target_register_t get_register (regnames_t reg);
96
 
97
/* Store VALUE in the register corresponding to WHICH. */
98
extern void put_register (regnames_t which, target_register_t value);
99
 
100
/* Set the currently-saved pc register value to PC. This also updates NPC
101
   as needed. */
102
extern void set_pc (target_register_t pc);
103
 
104
/* Set things up so that the next user resume will execute one instruction.
105
   This may be done by setting breakpoints or setting a single step flag
106
   in the saved user registers, for example. */
107
void __single_step (void);
108
 
109
/* Clear the single-step state. */
110
void __clear_single_step (void);
111
 
112
/* If the breakpoint we hit is in the breakpoint() instruction, return a
113
   non-zero value. */
114
extern int __is_breakpoint_function (void);
115
 
116
/* Skip the current instruction. */
117
extern void __skipinst (void);
118
 
119
extern void __install_breakpoints (void);
120
 
121
extern void __clear_breakpoints (void);
122
 
123
#ifdef __cplusplus
124
}   /* extern "C" */
125
#endif
126
 
127
#endif // ifndef CYGONCE_HAL_H8300_STUB_H

powered by: WebSVN 2.1.0

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