aboutsummaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-26 23:50:46 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-26 23:50:46 +0000
commit0a61814043bbf21bd081820f8be44a11a300f96f (patch)
tree21e8427d96b79e5622dcc87cd3b96796fbcbbf82 /target-sh4
parent56e0794aa7260d6ca0cd553a877dff19bfe83126 (diff)
Fix inc8 and dec8 operations, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2731 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/op.c4
1 files 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();
}