]> git.proxmox.com Git - qemu.git/commitdiff
microblaze: translate.c: Fix swaph decoding
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Thu, 8 Nov 2012 04:01:19 +0000 (14:01 +1000)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 8 Nov 2012 16:42:45 +0000 (17:42 +0100)
The swaph instruction was not decoding correctly. s/1e1/1e2 on the
9 LSBs on the instruction decode.

Reported-by: David Holsgrove <david.holsgrove@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-microblaze/translate.c

index 7d864b1dac29eee26f633809746038e72b9368d7..6f27c24b76dba9435b721c34527acbf3426bad46 100644 (file)
@@ -840,7 +840,7 @@ static void dec_bit(DisasContext *dc)
             LOG_DIS("swapb r%d r%d\n", dc->rd, dc->ra);
             tcg_gen_bswap32_i32(cpu_R[dc->rd], cpu_R[dc->ra]);
             break;
-        case 0x1e1:
+        case 0x1e2:
             /*swaph */
             LOG_DIS("swaph r%d r%d\n", dc->rd, dc->ra);
             tcg_gen_rotri_i32(cpu_R[dc->rd], cpu_R[dc->ra], 16);