From 11e9ed167a7f35fefc098b7144a410bf7d5f490b Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Tue, 6 Jan 2015 16:07:18 +0200 Subject: [PATCH] Fix building for android --- core/hw/sh4/modules/tmu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/hw/sh4/modules/tmu.cpp b/core/hw/sh4/modules/tmu.cpp index 09c78549f..95abcdfa3 100644 --- a/core/hw/sh4/modules/tmu.cpp +++ b/core/hw/sh4/modules/tmu.cpp @@ -89,8 +89,11 @@ void sched_chan_tick(int ch) u32 togo = read_TMU_TCNTch(ch); u32 cycles = togo << tmu_shift[ch]; + if (cycles > SH4_MAIN_CLOCK) + cycles = SH4_MAIN_CLOCK; + if (tmu_mask[ch]) - sh4_sched_request(tmu_sched[ch], min(cycles, SH4_MAIN_CLOCK) ); + sh4_sched_request(tmu_sched[ch], cycles ); else sh4_sched_request(tmu_sched[ch], -1); //sched_tmu_cb