In QEMU, an operating system can run above software emulated CPU. How can be a CPU emulated by software? I want to know about detail.
if CPU is emulated by software does registers are emulated with host system memory? say there is ARM assembly code
LDRB r0, [r1], #1
how can this be emulated in x86 environment? my guess is that emulating software keeps memory mapping space for r0(4byte), r1(4byte) and then updates the register value for corresponding memory location... am I wrong? I want detailed explanation...
thank you in advance