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:
@@ -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.
|
||||
//
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user