datagram_link_impl dm9161
Simics Reference Manual  /  5 Classes  / 

disassemble_x86

Description

This class implements the disassemble interface for the x86 architecture. Use the attributes to set up the operating mode prior to using the interface.

Interfaces Implemented

conf_object, log_object, disassemble

Notifiers

cell-change
Notifier that is triggered after the object's cell was changed.
object-delete
Notifier that is triggered just before Simics object is deleted.
queue-change
Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.

Attributes

lm64_mode
Pseudo attribute; read/write access; type: i
1|0 Set to 1 for 64-bit mode, 0 otherwise.
cs_d
Pseudo attribute; read/write access; type: i
1|0 The D-bit from the CS segment descriptor (1 for 32-bit mode, 0 for 16-bit mode).
ss_b
Pseudo attribute; read/write access; type: i
1|0 The B-bit from the SS segment descriptor (1 for 32-bit stack, 0 for 16-bit stack).
near_branches_64
Pseudo attribute; read/write access; type: b
Determines how near branches are handled in 64-bit mode. If the attribute is TRUE, then the operand size is fixed at 64-bits, while the default value of FALSE allows an override to 16 bits.
mov_default32
Pseudo attribute; read/write access; type: b
If TRUE, movs to or from control and debug registers will default to 32-bits in 64-bit mode. If FALSE (which is the default value), such moves will be fixed at 64-bits.
cpu_level
Pseudo attribute; read/write access; type: i
When instructions from different x86 generations share opcodes, this attribute is used to distinguish between them. Set to 3 for the 80386, 4 for the 80486, 5 for the PentiumĀ® family, and to 6 for anything more modern than the PentiumĀ® family (including all supported AMD processors).
disassemble
Pseudo attribute; read-only access; type: [is]
Disassemble instruction at the indexed host address. The returned value is a list with the length of the instruction and the disassembly string. It is up to the user to make sure that the host address given is valid and that it does not cause a memory access violation (which would crash the simulator).
host_byte
Pseudo attribute; read-only access; type: i
Get the byte at the indexed host address. It is up to the user to make sure that the host address given is valid and that it does not cause a memory access violation (which would crash the simulator).

Provided By

disassemble_x86
datagram_link_impl dm9161