target/ppc: Make divw[u] handler method decodetree compatible.
authorChinmay Rath <rathc@linux.ibm.com>
Tue, 23 Apr 2024 06:32:28 +0000 (12:02 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 22:57:50 +0000 (08:57 +1000)
commit86e6202a57b1ea44e6bd1fdb0faa0ce5aa3d4aab
tree6091a79d0c0f9180dd447b3f22abe5cda8b41c02
parenta1faff873ab1b808126a110aa6b3bc6050baa0f1
target/ppc: Make divw[u] handler method decodetree compatible.

The handler methods for divw[u] instructions internally use Rc(ctx->opcode),
for extraction of Rc field of instructions, which poses a problem if we move
the above said instructions to decodetree, as the ctx->opcode field is not
popluated in decodetree. Hence, making it decodetree compatible, so that the
mentioned insns can be safely move to decodetree specs.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Chinmay Rath <rathc@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/translate.c