From 8b511fa9b9e73bf05cc9b97eac003e5fe3d5f9cf Mon Sep 17 00:00:00 2001 From: linear cannon Date: Sat, 29 Jan 2022 05:29:01 -0800 Subject: [PATCH] dma.c: dma_page_write: don't call update_tsc() if DYNAREC=Off --- src/dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dma.c b/src/dma.c index d59160d73..26fe1a6bf 100644 --- a/src/dma.c +++ b/src/dma.c @@ -892,8 +892,10 @@ dma_page_write(uint16_t addr, uint8_t val, void *priv) { uint8_t convert[8] = CHANNELS; +#ifdef USE_DYNAREC if ((addr == 0x84) && cpu_use_dynarec) update_tsc(); +#endif addr &= 0x0f; dmaregs[2][addr] = val;