All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1 1/1] target-arm: A64: Fix decoding of iss_sf in disas_ld_lit
@ 2016-09-30 10:19 ` Edgar E. Iglesias
  0 siblings, 0 replies; 16+ messages in thread
From: Edgar E. Iglesias @ 2016-09-30 10:19 UTC (permalink / raw)
  To: qemu-devel, peter.maydell; +Cc: edgar.iglesias, qemu-arm

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

Fix the decoding of iss_sf in disas_ld_lit.
The SF (Sixty-Four) field in the ISS (Instruction Specific Syndrome)
is a bit that specifies the width of the register that the
instruction loads to.

If cleared it specifies 32 bits.
If set it specifies 64 bits.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
 target-arm/translate-a64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index ddf52f5..eae25c3 100644
--- a/target-arm/translate-a64.c
+++ b/target-arm/translate-a64.c
@@ -2025,7 +2025,7 @@ static void disas_ld_lit(DisasContext *s, uint32_t insn)
         do_fp_ld(s, rt, tcg_addr, size);
     } else {
         /* Only unsigned 32bit loads target 32bit registers.  */
-        bool iss_sf = opc == 0 ? 32 : 64;
+        bool iss_sf = opc == 0 ? false : true;
 
         do_gpr_ld(s, tcg_rt, tcg_addr, size, is_signed, false,
                   true, rt, iss_sf, false);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-10-01  1:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-30 10:19 [Qemu-devel] [PATCH v1 1/1] target-arm: A64: Fix decoding of iss_sf in disas_ld_lit Edgar E. Iglesias
2016-09-30 10:19 ` Edgar E. Iglesias
2016-09-30 10:42 ` [Qemu-arm] " Thomas Huth
2016-09-30 10:42   ` Thomas Huth
2016-09-30 10:49   ` Edgar E. Iglesias
2016-09-30 10:49     ` Edgar E. Iglesias
2016-09-30 17:34     ` Peter Maydell
2016-09-30 17:34       ` Peter Maydell
2016-09-30 18:36       ` [Qemu-arm] " Eric Blake
2016-09-30 18:36         ` Eric Blake
2016-09-30 21:42       ` [Qemu-arm] " Edgar Iglesias
2016-09-30 21:42         ` Edgar Iglesias
2016-09-30 23:19         ` [Qemu-arm] " Peter Maydell
2016-09-30 23:19           ` Peter Maydell
2016-10-01  1:15           ` [Qemu-arm] " Edgar Iglesias
2016-10-01  1:15             ` Edgar Iglesias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.