1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-05 08:26:28 +00:00

Fuzz memory, setup FS and GS.

This commit is contained in:
Thomas Harte
2025-03-25 17:16:36 -04:00
parent e264375a97
commit 8b1543d9c9
2 changed files with 7 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
#include "InstructionSets/x86/AccessType.hpp"
#include "InstructionSets/x86/Model.hpp"
#include "Machines/Utility/MemoryFuzzer.hpp"
#include <algorithm>
#include <array>
@@ -27,6 +28,10 @@ template <size_t MaxAddressV>
struct LinearPool {
static constexpr size_t MaxAddress = MaxAddressV;
LinearPool() {
Memory::Fuzz(memory);
}
//
// External access.
//

View File

@@ -62,6 +62,8 @@ public:
did_update(Source::CS);
did_update(Source::DS);
did_update(Source::SS);
did_update(Source::FS);
did_update(Source::GS);
}
InstructionSet::x86::SegmentRegisterSet<Descriptor> descriptors;