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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cpu/] [common/] [labels.h] - Blame information for rev 1308

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

Line No. Rev Author Line
1 269 markom
/* labels.h -- Abstract entities header file handling labels
2
   Copyright (C) 2001 Marko Mlinar, markom@opencores.org
3
 
4
This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
 
20
#ifndef _LABELS_H_
21
#define _LABELS_H_
22
 
23
#define LABELS_HASH_SIZE 119
24
 
25
/* Structure for holding one label per particular memory location */
26
struct label_entry {
27
  char *name;
28
  unsigned long addr;
29
  struct label_entry *next;
30
};
31
 
32
struct breakpoint_entry {
33
  unsigned long addr;
34
  struct breakpoint_entry *next;
35
};
36
 
37
/* Label handling */
38
void init_labels();
39
void add_label (unsigned long addr, char *name);
40
struct label_entry *get_label (unsigned long addr);
41
struct label_entry *find_label (char *name);
42
 
43
/* Searches mem array for a particular label and returns label's address.
44
   If label does not exist, returns 0. */
45
unsigned long eval_label (char *name);
46
 
47
/* Breakpoint handling */
48
void breakpoints_init ();
49
void add_breakpoint (unsigned long addr);
50
void remove_breakpoint (unsigned long addr);
51 1049 ivang
void print_breakpoints ();
52 557 markom
int has_breakpoint (unsigned long addr);
53 1308 phoenix
void init_breakpoints ();
54 269 markom
 
55 557 markom
extern struct breakpoint_entry *breakpoints;
56
#define CHECK_BREAKPOINTS (breakpoints)
57
 
58 269 markom
#endif /* _LABELS_H_ */

powered by: WebSVN 2.1.0

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