The ROme OpTimistic Simulator
2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
Main Page
Data Structures
Files
File List
Globals
lend.h
1
/*
2
x86 Length Disassembler.
3
Copyright (C) 2016 Alessandro Pellegrini
4
Copyright (C) 2013 Byron Platt
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
#include <stdbool.h>
22
23
//extern __thread bool _rip_relative;
24
extern
bool
_rip_relative;
25
26
/* Switch between 32-bit and 64-bit implementations */
27
#define MODE_X32 1
28
#define MODE_X64 2
29
30
#define has_rip_relative() (_rip_relative == true)
31
32
/* length_disasm */
33
unsigned
int
length_disasm(
void
*opcode0,
char
mode);
src
arch
x86
linux
schedule-hook
lend.h
Generated by
1.8.11