* Test case for PR 18452.
[binutils-gdb.git] / sim / ppc / os_emul.c
blob844b77fecc4f743d98c9bbb2f7bf64d679591b2d
1 /* This file is part of the program psim.
3 Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
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.
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.
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.
22 #ifndef _OS_EMUL_C_
23 #define _OS_EMUL_C_
25 #include "cpu.h"
26 #include "idecode.h"
27 #include "os_emul.h"
29 #include "emul_generic.h"
30 #include "emul_netbsd.h"
32 #ifndef STATIC_INLINE_OS_EMUL
33 #define STATIC_INLINE_OS_EMUL STATIC_INLINE
34 #endif
37 INLINE_OS_EMUL void
38 os_emul_call(cpu *processor,
39 unsigned_word cia)
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);
49 #endif /* _OS_EMUL_C_ */