Skip to contentSkip to conversation

[5473] SH4: Implement MOVUA.L

Qemu-devel Aurelien Jarno 1 participant 1 message Oct 12, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5473

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5473
Author:   aurel32
Date:     2008-10-12 23:32:59 +0000 (Sun, 12 Oct 2008)

Log Message:
-----------
SH4: Implement MOVUA.L

* target-sh4/translate.c (_decode_opc): Implement MOVUA.L.

(Vladimir Prus)

Modified Paths:
--------------
trunk/target-sh4/translate.c

Modified: trunk/target-sh4/translate.c
===================================================================

target-sh4/translate.c +11 -0
@@ -1515,6 +1515,17 @@
     case 0x00c3:		/* movca.l R0,@Rm */
 	tcg_gen_qemu_st32(REG(0), REG(B11_8), ctx->memidx);
 	return;
+    case 0x40a9:
+	/* MOVUA.L @Rm,R0 (Rm) -> R0
+	   Load non-boundary-aligned data */
+	tcg_gen_qemu_ld32u(REG(0), REG(B11_8), ctx->memidx);
+	return;
+    case 0x40e9:
+	/* MOVUA.L @Rm+,R0   (Rm) -> R0, Rm + 4 -> Rm
+	   Load non-boundary-aligned data */
+	tcg_gen_qemu_ld32u(REG(0), REG(B11_8), ctx->memidx);
+	tcg_gen_addi_i32(REG(B11_8), REG(B11_8), 4);
+	return;
     case 0x0029:		/* movt Rn */
 	tcg_gen_andi_i32(REG(B11_8), cpu_sr, SR_T);
 	return;