From 8be03be529357fde57b1c283304be6ff2e2d2efc Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 31 Oct 2023 20:28:37 -0400 Subject: [PATCH] Add test of ::Write mode. --- OSBindings/Mac/Clock SignalTests/8088Tests.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OSBindings/Mac/Clock SignalTests/8088Tests.mm b/OSBindings/Mac/Clock SignalTests/8088Tests.mm index 96f4f9d99..440f7c29d 100644 --- a/OSBindings/Mac/Clock SignalTests/8088Tests.mm +++ b/OSBindings/Mac/Clock SignalTests/8088Tests.mm @@ -25,7 +25,7 @@ namespace { // The tests themselves are not duplicated in this repository; // 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; struct Registers { @@ -188,6 +188,11 @@ struct Memory { return *reinterpret_cast(&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; }