version 1.1.1.1, 2016/01/26 17:26:47 |
version 1.1.1.1.2.1, 2016/11/04 14:44:42 |
|
|
/* CGEN generic disassembler support code. |
/* CGEN generic disassembler support code. |
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007 |
Copyright (C) 1996-2015 Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
|
|
|
This file is part of libopcodes. |
This file is part of libopcodes. |
|
|
Line 50 count_decodable_bits (const CGEN_INSN *i |
|
Line 49 count_decodable_bits (const CGEN_INSN *i |
|
return bits; |
return bits; |
} |
} |
|
|
/* Add an instruction to the hash chain. */ |
/* Add an instruction to the hash chain. */ |
static void |
static void |
add_insn_to_hash_chain (CGEN_INSN_LIST *hentbuf, |
add_insn_to_hash_chain (CGEN_INSN_LIST *hentbuf, |
const CGEN_INSN *insn, |
const CGEN_INSN *insn, |
Line 104 hash_insn_array (CGEN_CPU_DESC cd, |
|
Line 103 hash_insn_array (CGEN_CPU_DESC cd, |
|
CGEN_INSN_LIST ** htable, |
CGEN_INSN_LIST ** htable, |
CGEN_INSN_LIST * hentbuf) |
CGEN_INSN_LIST * hentbuf) |
{ |
{ |
int big_p = CGEN_CPU_ENDIAN (cd) == CGEN_ENDIAN_BIG; |
int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG; |
int i; |
int i; |
|
|
for (i = count - 1; i >= 0; --i, ++hentbuf) |
for (i = count - 1; i >= 0; --i, ++hentbuf) |
Line 142 hash_insn_list (CGEN_CPU_DESC cd, |
|
Line 141 hash_insn_list (CGEN_CPU_DESC cd, |
|
CGEN_INSN_LIST **htable, |
CGEN_INSN_LIST **htable, |
CGEN_INSN_LIST *hentbuf) |
CGEN_INSN_LIST *hentbuf) |
{ |
{ |
int big_p = CGEN_CPU_ENDIAN (cd) == CGEN_ENDIAN_BIG; |
int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG; |
const CGEN_INSN_LIST *ilist; |
const CGEN_INSN_LIST *ilist; |
|
|
for (ilist = insns; ilist != NULL; ilist = ilist->next, ++ hentbuf) |
for (ilist = insns; ilist != NULL; ilist = ilist->next, ++ hentbuf) |