From 0a61814043bbf21bd081820f8be44a11a300f96f Mon Sep 17 00:00:00 2001 From: ths Date: Thu, 26 Apr 2007 23:50:46 +0000 Subject: [PATCH] Fix inc8 and dec8 operations, by Magnus Damm. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2731 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sh4/op.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-sh4/op.c b/target-sh4/op.c index d3b68bc665..758aa53b7c 100644 --- a/target-sh4/op.c +++ b/target-sh4/op.c @@ -737,7 +737,7 @@ void OPPROTO op_dec4_rN(void) void OPPROTO op_dec8_rN(void) { - env->gregs[PARAM1] -= 4; + env->gregs[PARAM1] -= 8; RETURN(); } @@ -761,7 +761,7 @@ void OPPROTO op_inc4_rN(void) void OPPROTO op_inc8_rN(void) { - env->gregs[PARAM1] += 4; + env->gregs[PARAM1] += 8; RETURN(); }