On 03.09.14 20:21, Tom Musta wrote: > On 8/28/2014 12:14 PM, Paolo Bonzini wrote: >> This was off-by-one. >> >> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> >> --- >> monitor.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/monitor.c b/monitor.c >> index 34cee74..ec73dd4 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; >> } >> > > Reviewed-by: Tom Musta <tommu...@gmail.com> >
Thanks, applied to ppc-next. Alex