projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5b4dc3
)
ppc: fix monitor access to CR
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 28 Aug 2014 17:14:59 +0000
(19:14 +0200)
committer
Alexander Graf
<agraf@suse.de>
Tue, 4 Nov 2014 22:26:10 +0000
(23:26 +0100)
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>
monitor.c
patch
|
blob
|
history
diff --git
a/monitor.c
b/monitor.c
index 1fc201ae820a164b49bcfc66c224c06c2e9de2ff..905d8cf4d46f178bab804f99c59a640d720a42d1 100644
(file)
--- 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;
}