A method for maintaining dynamic register-level memory-mode flags in a virtual machine includes parsing a machine instruction of a live memory analysis command in a virtual machine (VM). The machine instruction can include an instruction opcode, a source address referring to a first type of memory and a destination address referring to a second type of memory. A register bitmap can be stored as a register-level memory-mode flag array. Thereafter, it can be determined whether or not the instruction opcode maps to an inheritance class. Finally, in response to a bit in the register-level memory mode flag array referencing virtual memory and the instruction opcode being mapped to an inheritance class, the register bitmap can be replaced with new bit values that represent redefined memory types for each register represented in the register bitmap. Subsequently, the new register bitmap can be used in simulation of a next machine instruction of a live memory analysis command executing in the virtual machine.
展开▼