summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/gen_fifo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/gen_fifo.cpp')
-rw-r--r--src/devices/machine/gen_fifo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/machine/gen_fifo.cpp b/src/devices/machine/gen_fifo.cpp
index bcbd3f54201..10fcf37429c 100644
--- a/src/devices/machine/gen_fifo.cpp
+++ b/src/devices/machine/gen_fifo.cpp
@@ -107,6 +107,12 @@ template<typename T> void generic_fifo_device_base<T>::device_timer(emu_timer &t
template<typename T> T generic_fifo_device_base<T>::pop()
{
+ if(machine().side_effects_disabled()) {
+ if(is_empty())
+ return T();
+ return m_values.front();
+ }
+
// Are we empty?
if(is_empty()) {
// First, trigger the sync