projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc0ad84
)
target/ppc: use tcg ops for neg instruction
author
Nikunj A Dadhania
<nikunj@linux.vnet.ibm.com>
Mon, 27 Feb 2017 04:57:58 +0000
(10:27 +0530)
committer
David Gibson
<david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 00:23:39 +0000
(11:23 +1100)
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate.c
patch
|
blob
|
history
diff --git
a/target/ppc/translate.c
b/target/ppc/translate.c
index 16f422fb9c75cacef15f2c0b92983e53e739abb3..d4d9941f083e391b3b1e37272576b9159c666cb5 100644
(file)
--- a/
target/ppc/translate.c
+++ b/
target/ppc/translate.c
@@
-1483,7
+1483,10
@@
static inline void gen_op_arith_neg(DisasContext *ctx, bool compute_ov)
static void gen_neg(DisasContext *ctx)
{
- gen_op_arith_neg(ctx, 0);
+ tcg_gen_neg_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)]);
+ if (unlikely(Rc(ctx->opcode))) {
+ gen_set_Rc0(ctx, cpu_gpr[rD(ctx->opcode)]);
+ }
}
static void gen_nego(DisasContext *ctx)