111
|
1 /* brig-machine.c -- gccbrig machine queries
|
145
|
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
111
|
3 Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
|
|
4 for General Processor Tech.
|
|
5
|
|
6 This file is part of GCC.
|
|
7
|
|
8 GCC is free software; you can redistribute it and/or modify it under
|
|
9 the terms of the GNU General Public License as published by the Free
|
|
10 Software Foundation; either version 3, or (at your option) any later
|
|
11 version.
|
|
12
|
|
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
16 for more details.
|
|
17
|
|
18 You should have received a copy of the GNU General Public License
|
|
19 along with GCC; see the file COPYING3. If not see
|
|
20 <http://www.gnu.org/licenses/>. */
|
|
21
|
|
22 #include "config.h"
|
|
23 #include "system.h"
|
|
24 #include "coretypes.h"
|
|
25 #include "brig-machine.h"
|
|
26
|
|
27 /* Return the numerical address space id for the segment in the current
|
|
28 target. Currently a dummy function that always returns 0, serves as
|
|
29 a placeholder for multi-AS machines. */
|
|
30
|
|
31 unsigned
|
|
32 gccbrig_get_target_addr_space_id (BrigSegment8_t)
|
|
33 {
|
|
34 return 0;
|
|
35 }
|
|
36
|
|
37 /* Return the WAVESIZE for the current target. For now a dummy placeholder
|
|
38 returning always 1. */
|
|
39
|
|
40 unsigned
|
|
41 gccbrig_get_target_wavesize ()
|
|
42 {
|
|
43 return 1;
|
|
44 }
|