mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
target-ppc: Add ISA 2.06 divweu[o] Instructions
This patch addes the Unsigned Divide Word Extended instructions which were introduced in Power ISA 2.06B. Signed-off-by: Tom Musta <tommusta@gmail.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
e44259b6d4
commit
6a4fda3358
3 changed files with 37 additions and 0 deletions
|
@ -998,6 +998,9 @@ static void gen_##name(DisasContext *ctx) \
|
|||
} \
|
||||
}
|
||||
|
||||
GEN_DIVE(divweu, divweu, 0);
|
||||
GEN_DIVE(divweuo, divweu, 1);
|
||||
|
||||
#if defined(TARGET_PPC64)
|
||||
static inline void gen_op_arith_divd(DisasContext *ctx, TCGv ret, TCGv arg1,
|
||||
TCGv arg2, int sign, int compute_ov)
|
||||
|
@ -9716,6 +9719,8 @@ GEN_INT_ARITH_DIVW(divwu, 0x0E, 0, 0),
|
|||
GEN_INT_ARITH_DIVW(divwuo, 0x1E, 0, 1),
|
||||
GEN_INT_ARITH_DIVW(divw, 0x0F, 1, 0),
|
||||
GEN_INT_ARITH_DIVW(divwo, 0x1F, 1, 1),
|
||||
GEN_HANDLER_E(divweu, 0x1F, 0x0B, 0x0C, 0, PPC_NONE, PPC2_DIVE_ISA206),
|
||||
GEN_HANDLER_E(divweuo, 0x1F, 0x0B, 0x1C, 0, PPC_NONE, PPC2_DIVE_ISA206),
|
||||
|
||||
#if defined(TARGET_PPC64)
|
||||
#undef GEN_INT_ARITH_DIVD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue