xtensa: Avoid calling get_page_addr_code() from helper function
commit0f02251a30ea8c4ce64d9a240795e10bb3c5852c
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Jun 2018 13:58:23 +0000 (22 14:58 +0100)
committerMax Filippov <jcmvbkbc@gmail.com>
Sat, 30 Jun 2018 19:00:17 +0000 (30 12:00 -0700)
treebe9785d9ef0acd2c19b1269bcee965505d906ed9
parent9c509ff94e58823624b9617590134bc05d674279
xtensa: Avoid calling get_page_addr_code() from helper function

The xtensa frontend calls get_page_addr_code() from its
itlb_hit_test helper function. This function is really part
of the TCG core's internals, and calling it from a target
helper makes it awkward to make changes to that core code.
It also means that we don't pass the correct retaddr to
tlb_fill(), so we won't correctly handle the case where
an exception is generated.

The helper is used for the instructions IHI, IHU and IPFL.

Change it to call cpu_ldb_code_ra() instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/xtensa/op_helper.c