Mercurial > repos > blastem
changeset 2592:8ef8b2e99f4f
Fix regression in better unimplemented instruction error in CPU dsl
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 09 Feb 2025 16:54:38 -0800 |
parents | 563d05355a12 |
children | b0a7b1f708cc |
files | cpu_dsl.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cpu_dsl.py Sun Feb 09 14:15:22 2025 -0800 +++ b/cpu_dsl.py Sun Feb 09 16:54:38 2025 -0800 @@ -499,8 +499,6 @@ table = 'main' else: table = params[1] - if table == 'main': - prog.mainDispatch.add(params[0]) if prog.dispatch == 'call': return '\n\timpl_{tbl}[{op}](context, target_cycle);'.format(tbl = table, op = params[0]) elif prog.dispatch == 'goto': @@ -2044,7 +2042,7 @@ body.append('\nstatic void unimplemented({pre}context *context, uint32_t target_cycle)'.format(pre = self.prefix)) body.append('\n{') if len(self.mainDispatch) == 1: - dispatch = list(self.mainDispatch)[0] + dispatch = self.resolveParam(list(self.mainDispatch)[0], None, {}) body.append(f'\n\tfatal_error("Unimplemented instruction: %X\\n", {dispatch});') else: body.append('\n\tfatal_error("Unimplemented instruction\\n");')