target/arm: Share unallocated_encoding() and gen_exception_insn()
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> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Message-id: 20210430132740.10391-3-peter.maydell@linaro.org
Showing
- target/arm/translate-a64.c 0 additions, 15 deletionstarget/arm/translate-a64.c
- target/arm/translate-a64.h 0 additions, 2 deletionstarget/arm/translate-a64.h
- target/arm/translate.c 9 additions, 5 deletionstarget/arm/translate.c
- target/arm/translate.h 3 additions, 0 deletionstarget/arm/translate.h
Loading
Please register or sign in to comment