Skip to contentSkip to conversation

x86 opcode length

Qemu-devel Clemens Kolbitsch 1 participant 1 message May 19, 2008

lore
Share & tools
lore
#0 lore raw

Hi!
I'm working on a project that needs to copy out the currently executing x86 opcode (I have disabled block chaining for this) under certain conditions... is there a way to figure out, exactly how long the original opcode of the TB was (i.e. including prefixes, parameters, etc.)?

I know that the information is encoded implicitly in the disas_insn function... but maybe there is a function somewhere that does exactly this or someone of you has a handy table/documentation for this.

Thx!
Clemens