target/xtensa: don't require opcode table sorting
commit759039737504c3f11098f7240c6048c6279e2215
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 10 Feb 2019 07:21:44 +0000 (9 23:21 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 19 Feb 2019 05:29:08 +0000 (18 21:29 -0800)
treebdedf02668294fdfc0d1bd5f5aa9894ee2f6d3bd
parent0e7c887919e44f25491a4eb86403e947d9d54937
target/xtensa: don't require opcode table sorting

Requirement for alphabetical opcode sorting in opcode tables is awkward
and does not allow sharing implementation between multiple opcodes.
Use hash tables to find opcodes by name. Move implementation from the
translate.c to the helper.c to its only user and remove declaration from
the cpu.h

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target/xtensa/cpu.h
target/xtensa/helper.c
target/xtensa/translate.c