From b2464598d0d76d234a8e9b4d9bcc5068bc35b968 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 28 May 2018 18:21:01 -0400 Subject: [PATCH] Forces the Apple II bus handler call inline. --- Machines/AppleII/AppleII.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Machines/AppleII/AppleII.cpp b/Machines/AppleII/AppleII.cpp index 4dab72590..27995bdb4 100644 --- a/Machines/AppleII/AppleII.cpp +++ b/Machines/AppleII/AppleII.cpp @@ -24,6 +24,8 @@ #include "DiskIICard.hpp" #include "Video.hpp" +#include "../../ClockReceiver/ForceInline.hpp" + #include "../../Analyser/Static/AppleII/Target.hpp" #include @@ -203,7 +205,7 @@ class ConcreteMachine: return &speaker_; } - Cycles perform_bus_operation(CPU::MOS6502::BusOperation operation, uint16_t address, uint8_t *value) { + forceinline Cycles perform_bus_operation(CPU::MOS6502::BusOperation operation, uint16_t address, uint8_t *value) { ++ cycles_since_video_update_; ++ cycles_since_card_update_; cycles_since_audio_update_ += Cycles(7);