OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f17ef
)
target-sparc: fix immediate UA2005 traps
author
Artyom Tarasenko
<atar4qemu@gmail.com>
Wed, 8 Jun 2016 12:17:36 +0000
(14:17 +0200)
committer
Artyom Tarasenko
<atar4qemu@gmail.com>
Wed, 18 Jan 2017 21:03:44 +0000
(22:03 +0100)
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
target/sparc/translate.c
patch
|
blob
|
history
diff --git
a/target/sparc/translate.c
b/target/sparc/translate.c
index
399a8ac
..
1099976
100644
(file)
--- a/
target/sparc/translate.c
+++ b/
target/sparc/translate.c
@@
-3298,7
+3298,7
@@
static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
rs1 = GET_FIELD_SP(insn, 14, 18);
if (IS_IMM) {
- rs2 = GET_FIELD_SP(insn, 0,
6
);
+ rs2 = GET_FIELD_SP(insn, 0,
7
);
if (rs1 == 0) {
tcg_gen_movi_i32(trap, (rs2 & mask) + TT_TRAP);
/* Signal that the trap value is fully constant. */