]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/ppc/os_emul.c
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / ppc / os_emul.c
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 _OS_EMUL_C_
23 #define _OS_EMUL_C_
24
25 #include "cpu.h"
26 #include "idecode.h"
27 #include "os_emul.h"
28
29 #include "emul_generic.h"
30 #include "emul_netbsd.h"
31
32 #ifndef STATIC_INLINE_OS_EMUL
33 #define STATIC_INLINE_OS_EMUL STATIC_INLINE
34 #endif
35
36
37 INLINE_OS_EMUL void
38 os_emul_call(cpu *processor,
39 unsigned_word cia)
40 {
41 emulation *emul = &emul_netbsd;
42 emul_do_call(emul,
43 cpu_registers(processor)->gpr[0],
44 3, /*r3 contains arg0*/
45 processor,
46 cia);
47 }
48
49 #endif /* _OS_EMUL_C_ */