target/xtensa: prioritize load/store in FLIX bundles
commit068e538a54552289a58689f21c99ed3696e59961
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 14 Feb 2019 01:36:30 +0000 (13 17:36 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 28 Feb 2019 12:43:22 +0000 (28 04:43 -0800)
tree0a8c9a81e678a2f7d026dc635755e0e0a560880b
parent89bec9e9117d454d2101f7848475b11677ca99ff
target/xtensa: prioritize load/store in FLIX bundles

Load/store opcodes may raise MMU exceptions. Normally exceptions should
be checked in priority order before any actual operations, but since MMU
exceptions are tightly coupled with actual memory access, there's
currently no way to do it.

Approximate this behavior by executing all load, then all store, and
then all other opcodes in the FLIX bundles. Use opcode dependency
mechanism to express ordering. Mark load/store opcodes with
XTENSA_OP_{LOAD,STORE} flags. Newer libisa has classifier functions that
can tell whether opcode is a load or store, but this information is not
available in the existing overlays.

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