mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
UserspaceEmulator: Mark all registers as initialized from boot
Since we zero out all the register values, let's also mark them all as fully initialized.
This commit is contained in:
@@ -70,7 +70,7 @@ SoftCPU::SoftCPU(Emulator& emulator)
|
||||
: m_emulator(emulator)
|
||||
{
|
||||
memset(m_gpr, 0, sizeof(m_gpr));
|
||||
memset(m_gpr_shadow, 0, sizeof(m_gpr_shadow));
|
||||
memset(m_gpr_shadow, 1, sizeof(m_gpr_shadow));
|
||||
|
||||
m_segment[(int)X86::SegmentRegister::CS] = 0x18;
|
||||
m_segment[(int)X86::SegmentRegister::DS] = 0x20;
|
||||
|
||||
Reference in New Issue
Block a user