diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-28 19:14:59 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-11-04 23:26:10 +0100 |
commit | d29811806067de1516c2f94c0a81885fe2076fc8 (patch) | |
tree | 2b96afa2f4f2ff37bd91e08260bbff0066cd6d11 | |
parent | d5b4dc3b50175f0c34f3cf4b053e123fb37f5aed (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |