Mercurial > repos > blastem
diff cpu_dsl.py @ 2580:939b818df589
Get 68K interrupts working in new CPU core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 08 Feb 2025 11:40:42 -0800 |
parents | 9b01541cbd60 |
children | 9e10149c9e10 |
line wrap: on
line diff
--- a/cpu_dsl.py Fri Feb 07 23:32:15 2025 -0800 +++ b/cpu_dsl.py Sat Feb 08 11:40:42 2025 -0800 @@ -1967,6 +1967,8 @@ pieces.append('\n\t{') if self.interrupt in self.subroutines: pieces.append('\n\t\tif (context->cycles >= context->sync_cycle) {') + pieces.append(f'\n\t\t\t{self.sync_cycle}(context, target_cycle);') + pieces.append('\n\t\t}') self.meta = {} self.temp = {} intpieces = [] @@ -1974,7 +1976,6 @@ for size in self.temp: pieces.append('\n\tuint{sz}_t gen_tmp{sz}__;'.format(sz=size)) pieces += intpieces - pieces.append('\n\t\t}') self.meta = {} self.temp = {} self.subroutines[self.body].inline(self, [], pieces, otype, None)