OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [common/] [labels.h] - Blame information for rev 162

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

Line No. Rev Author Line
1 19 jeremybenn
/* labels.h -- Abstract entities header file handling labels
2
 
3
   Copyright (C) 2001 Marko Mlinar, markom@opencores.org
4
   Copyright (C) 2008 Embecosm Limited
5
 
6
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
7
 
8
   This file is part of Or1ksim, the OpenRISC 1000 Architectural Simulator.
9
 
10
   This program is free software; you can redistribute it and/or modify it
11
   under the terms of the GNU General Public License as published by the Free
12
   Software Foundation; either version 3 of the License, or (at your option)
13
   any later version.
14
 
15
   This program is distributed in the hope that it will be useful, but WITHOUT
16
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18
   more details.
19
 
20
   You should have received a copy of the GNU General Public License along
21
   with this program.  If not, see <http://www.gnu.org/licenses/>.  */
22
 
23
/* This program is commented throughout in a fashion suitable for processing
24
   with Doxygen. */
25
 
26
 
27
#ifndef LABELS__H_
28
#define LABELS__H_
29
 
30
/* Package include */
31
#include "abstract.h"
32
 
33
/*! Structure for holding one label per particular memory location */
34
struct label_entry
35
{
36
  char               *name;
37
  oraddr_t            addr;
38
  struct label_entry *next;
39
};
40
 
41
/*! Structure repesenting a breakpoint */
42
struct breakpoint_entry
43
{
44
  oraddr_t                 addr;
45
  struct breakpoint_entry *next;
46
};
47
 
48
/* Globally visible variables */
49
extern struct breakpoint_entry *breakpoints;
50
 
51
/* Function prototypes for external use */
52
extern void                init_labels ();
53
extern void                add_label (oraddr_t  addr,
54
                                      char     *name);
55
extern struct label_entry *get_label (oraddr_t addr);
56
extern struct label_entry *find_label (char *name);
57
extern oraddr_t            eval_label (char *name);
58
extern void                add_breakpoint (oraddr_t addr);
59
extern void                remove_breakpoint (oraddr_t addr);
60
extern void                print_breakpoints ();
61
extern int                 has_breakpoint (oraddr_t addr);
62
extern void                init_breakpoints ();
63
 
64
#endif  /* LABELS__H_ */

powered by: WebSVN 2.1.0

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