make inline model use static when inlining.
[external/binutils.git] / sim / ppc / function_unit.h
1 /*  This file is part of the program psim.
2
3     Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14  
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  
19     */
20
21
22 #ifndef _FUNCTION_UNIT_H_
23 #define _FUNCTION_UNIT_H_
24
25 #include "itable.h"
26
27 #ifndef INLINE_FUNCTION_UNIT
28 #define INLINE_FUNCTION_UNIT
29 #endif
30
31 /* basic types */
32
33 typedef struct _function_unit function_unit;
34
35 typedef struct _function_unit_print function_unit_print;
36 struct _function_unit_print {
37   function_unit_print *next;
38   const char *name;
39   const char *suffix_singular;
40   const char *suffix_plural;
41   unsigned count;
42 };
43
44 /* constructor */
45
46 INLINE_FUNCTION_UNIT function_unit *function_unit_create
47 (void);
48
49 INLINE_FUNCTION_UNIT void function_unit_init
50 (function_unit *func_unit);
51
52 INLINE_FUNCTION_UNIT void function_unit_halt
53 (cpu *processor,
54  function_unit *func_unit);
55
56 INLINE_FUNCTION_UNIT function_unit_print *function_unit_mon_info
57 (function_unit *func_unit);
58
59 INLINE_FUNCTION_UNIT void function_unit_mon_free
60 (function_unit *func_unit,
61  function_unit_print *ptr);
62
63 INLINE_FUNCTION_UNIT void function_unit_issue
64 (itable_index index,
65  function_unit *func_unit,
66  unsigned_word cia);
67
68 INLINE_FUNCTION_UNIT void function_unit_model
69 (const char *model);
70
71 #endif /* _FUNCTION_UNIT_H_ */