From 56e42859abbbc955b5fb00f28af64eef75f93443 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 5 Apr 2019 23:21:50 -0400 Subject: [PATCH] Ensures the supervisor flag is updated properly on MOVE to SR. --- Processors/68000/Implementation/68000Implementation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index 48a5e8f52..9da14e478 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -26,7 +26,7 @@ extend_flag_ = (x) & 0x0010; \ interrupt_level_ = ((x) >> 8) & 7; \ trace_flag_ = (x) & 0x8000; \ - is_supervisor_ = ((x) >> 13) & 1; + set_is_supervisor(!!(((x) >> 13) & 1)); template void Processor::run_for(HalfCycles duration) { HalfCycles remaining_duration = duration + half_cycles_left_to_run_;