opcodes/arc: Move instruction length logic to new function
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 24 Mar 2016 16:54:37 +0000 (16:54 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 14 Apr 2016 16:15:18 +0000 (17:15 +0100)
commitcb040366b36ca624874e036805ca1fca740dae9f
tree774830bc95253881147800e16dbf1ab067da3d9d
parent7634c4e679156fc6a93ccb8b33898f5cf41eb233
opcodes/arc: Move instruction length logic to new function

Move the logic that calculates the instruction length out to a new
function.  Restructure the code to make it simpler.

opcodes/ChangeLog:

* arc-dis.c (arc_insn_length): New function.
(print_insn_arc): Use arc_insn_length, change insnLen to unsigned.
(find_format): Change insnLen parameter to unsigned.
opcodes/ChangeLog
opcodes/arc-dis.c