Re: [Qemu-devel] [PATCH 44/60] AArch64: Add division instruction family emulation
On 09/26/2013 05:48 PM, Alexander Graf wrote: > +if (is_32bit) { > +if (is_signed) { > +tcg_gen_ext32s_i64(cpu_reg(rd), cpu_reg(rd)); > +} else { > +tcg_gen_ext32u_i64(cpu_reg(rd), cpu_reg(rd)); > +} > +} Incorrect. Result is always zero-ext
[Qemu-devel] [PATCH 44/60] AArch64: Add division instruction family emulation
This patch adds emulation support for the udiv and sdiv instructions. Signed-off-by: Alexander Graf --- target-arm/helper-a64.c| 16 target-arm/helper-a64.h| 2 ++ target-arm/translate-a64.c | 43 +++ 3 files changed, 61 insertion