mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48: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:
parent
2a2e76c802
commit
6c8a0e8c56
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue