-> 3.20.0 final
[valgrind.git] / VEX / priv / guest_nanomips_defs.h
blob2e26b9cf15aa33db39c44f3b9560a3d41c83e680
2 /*---------------------------------------------------------------*/
3 /*--- begin guest_nanomips_defs.h ---*/
4 /*---------------------------------------------------------------*/
6 /*
7 This file is part of Valgrind, a dynamic binary instrumentation
8 framework.
10 Copyright (C) 2017-2018 RT-RK
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License as
14 published by the Free Software Foundation; either version 2 of the
15 License, or (at your option) any later version.
17 This program is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25 02111-1307, USA.
27 The GNU General Public License is contained in the file COPYING.
30 /* Only to be used within the guest-mips directory. */
32 #ifndef __VEX_GUEST_NANOMIPS_DEFS_H
33 #define __VEX_GUEST_NANOMIPS_DEFS_H
35 #include "libvex_basictypes.h"
36 #include "guest_generic_bb_to_IR.h" /* DisResult */
37 #include "common_nanomips_defs.h"
39 #if defined (_MIPSEL)
40 #define MIPS_IEND Iend_LE
41 #else
42 #define MIPS_IEND Iend_BE
43 #endif
45 /*---------------------------------------------------------*/
46 /*--- mips to IR conversion ---*/
47 /*---------------------------------------------------------*/
49 /* Convert one nanoMIPS insn to IR. See the type DisOneInstrFn in
50 guest_generic_bb_to_IR.h. */
51 extern DisResult disInstr_nanoMIPS ( IRSB* irbb,
52 const UChar* guest_code,
53 Long delta,
54 Addr guest_IP,
55 VexArch guest_arch,
56 const VexArchInfo* archinfo,
57 const VexAbiInfo* abiinfo,
58 VexEndness host_endness,
59 Bool sigill_diag );
62 extern VexGuestLayout nanomipsGuest_layout;
64 extern HWord nanomips_dirtyhelper_rdhwr ( UInt rd );
66 #endif
68 /*---------------------------------------------------------------*/
69 /*--- end guest_nanomips_defs.h ---*/
70 /*---------------------------------------------------------------*/