mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Add test of ::Write mode.
This commit is contained in:
parent
724e08d4f1
commit
8be03be529
@ -25,7 +25,7 @@ namespace {
|
|||||||
|
|
||||||
// The tests themselves are not duplicated in this repository;
|
// The tests themselves are not duplicated in this repository;
|
||||||
// provide their real path here.
|
// provide their real path here.
|
||||||
constexpr char TestSuiteHome[] = "/Users/tharte/Projects/ProcessorTests/8088/v1";
|
constexpr char TestSuiteHome[] = "/Users/thomasharte/Projects/ProcessorTests/8088/v1";
|
||||||
|
|
||||||
using Status = InstructionSet::x86::Status;
|
using Status = InstructionSet::x86::Status;
|
||||||
struct Registers {
|
struct Registers {
|
||||||
@ -188,6 +188,11 @@ struct Memory {
|
|||||||
return *reinterpret_cast<IntT *>(&read_value_);
|
return *reinterpret_cast<IntT *>(&read_value_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the CPU has indicated a write, it should be safe to fuzz the value now.
|
||||||
|
if(type == AccessType::Write) {
|
||||||
|
value = IntT(~0);
|
||||||
|
}
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user