From e746637bee001affafe162b66b373882583e382c Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 27 May 2022 11:12:10 -0400 Subject: [PATCH] Fill in dynamic cost of shifts. --- Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp index 921b182b9..4a6265414 100644 --- a/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp +++ b/Processors/68000Mk2/Implementation/68000Mk2Implementation.hpp @@ -2539,8 +2539,8 @@ template void ProcessorBase::did_muls(IntT) { // TODO: calculate cost. } -void ProcessorBase::did_shift(int) { - // TODO: calculate cost. +void ProcessorBase::did_shift(int bits_shifted) { + dynamic_instruction_length_ = bits_shifted; } template void ProcessorBase::raise_exception(int vector) {