The unallocated_encoding() function is the same in both
translate-a64.c and translate.c; make the translate.c function global
and drop the translate-a64.c version. To do this we need to also
share gen_exception_insn(), which currently exists in two slightly
different versions for A32 and A64: merge those into a single
function that can work for both.
This will be useful for splitting up translate.c, which will require
unallocated_encoding() to no longer be file-local. It's also
hopefully less confusing to have only one version of the function
rather than two.
Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
target/arm/translate-a64.h | 2 --
target/arm/translate.h | 3 +++
target/arm/translate-a64.c | 15 ---------------
target/arm/translate.c | 14 +++++++++-----
4 files changed, 12 insertions(+), 22 deletions(-)