diff options
author | Peter Crosthwaite | 2012-11-08 05:01:19 +0100 |
---|---|---|
committer | Edgar E. Iglesias | 2012-11-08 17:42:45 +0100 |
commit | b8c6a5d9d0ab426c1626cd6c228b09b9529dba31 (patch) | |
tree | 70820f833f4f7a3f2c35395539767775cb08fe1b | |
parent | tools: initialize main loop before block layer (diff) | |
download | qemu-b8c6a5d9d0ab426c1626cd6c228b09b9529dba31.tar.gz qemu-b8c6a5d9d0ab426c1626cd6c228b09b9529dba31.tar.xz qemu-b8c6a5d9d0ab426c1626cd6c228b09b9529dba31.zip |
microblaze: translate.c: Fix swaph decoding
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>
-rw-r--r-- | target-microblaze/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 7d864b1dac..6f27c24b76 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -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); |