summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-08-28 19:14:59 +0200
committerAlexander Graf <agraf@suse.de>2014-11-04 23:26:10 +0100
commitd29811806067de1516c2f94c0a81885fe2076fc8 (patch)
tree2b96afa2f4f2ff37bd91e08260bbff0066cd6d11
parentd5b4dc3b50175f0c34f3cf4b053e123fb37f5aed (diff)
downloadqemu-d29811806067de1516c2f94c0a81885fe2076fc8.zip
ppc: fix monitor access to CR
This was off-by-one. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 1fc201ae82..905d8cf4d4 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2968,7 +2968,7 @@ static target_long monitor_get_ccr (const struct MonitorDef *md, int val)
u = 0;
for (i = 0; i < 8; i++)
- u |= env->crf[i] << (32 - (4 * i));
+ u |= env->crf[i] << (32 - (4 * (i + 1)));
return u;
}