diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-07-31 21:46:47 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-07-31 21:46:47 (GMT) |
commit | 3786e818fdf8731dd6f310f0aaac75d431646160 (patch) | |
tree | a1dc1d1ed27c56d7ae2e361102fef7310a9b1a21 /src/arch/x86/op_hlt.c | |
parent | 57758c2cd11938e3e4c6e45b983cee4c2269ff44 (diff) |
Handled the virtual offset and fixed the operand-size overriding.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@11 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86/op_hlt.c')
-rw-r--r-- | src/arch/x86/op_hlt.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/arch/x86/op_hlt.c b/src/arch/x86/op_hlt.c index ddb5882..9443e7d 100644 --- a/src/arch/x86/op_hlt.c +++ b/src/arch/x86/op_hlt.c @@ -31,9 +31,11 @@ /****************************************************************************** * * -* Paramètres : data = flux de données à analyser. * -* pos = position courante dans ce flux. [OUT] * -* len = taille totale des données à analyser. * +* Paramètres : data = flux de données à analyser. * +* pos = position courante dans ce flux. [OUT] * +* len = taille totale des données à analyser. * +* offset = adresse virtuelle de l'instruction. * +* proc = architecture ciblée par le désassemblage. * * * * Description : Décode une instruction de type 'hlt'. * * * @@ -43,7 +45,7 @@ * * ******************************************************************************/ -asm_x86_instr *read_instr_hlt(const uint8_t *data, off_t *pos, off_t len) +asm_x86_instr *read_instr_hlt(const uint8_t *data, off_t *pos, off_t len, uint64_t offset, const asm_x86_processor *proc) { asm_x86_instr *result; |