2 /*---------------------------------------------------------------*/
3 /*--- begin guest_nanomips_defs.h ---*/
4 /*---------------------------------------------------------------*/
7 This file is part of Valgrind, a dynamic binary instrumentation
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
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"
40 #define MIPS_IEND Iend_LE
42 #define MIPS_IEND Iend_BE
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
,
56 const VexArchInfo
* archinfo
,
57 const VexAbiInfo
* abiinfo
,
58 VexEndness host_endness
,
62 extern VexGuestLayout nanomipsGuest_layout
;
64 extern HWord
nanomips_dirtyhelper_rdhwr ( UInt rd
);
68 /*---------------------------------------------------------------*/
69 /*--- end guest_nanomips_defs.h ---*/
70 /*---------------------------------------------------------------*/