FT32: Remove recursion in ft32_opcode
authorJames Bowman (FTDI-UK) <james.bowman@ftdichip.com>
Tue, 24 Aug 2021 02:16:56 +0000 (02:16 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Aug 2021 11:09:29 +0000 (20:39 +0930)
commitee077885e5d182d0d9fba090f3505f16f640dff7
tree85fb502c809a2f02e2773350c1c2ce1fd63a3e96
parentba675877223cae6a9fe52da7f36f25803de2ef5d
FT32: Remove recursion in ft32_opcode

The function ft32_opcode used recursion.  This could cause a stack
overflow.  Replaced with a pair of non-recursive functions.

PR 28169
        * ft32-dis.c: Formatting.
(ft32_opcode1): Split out from..
(ft32_opcode): ..here.
opcodes/ft32-dis.c