[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 03/17] ppc: fix monitor access to CR
From: |
Tom Musta |
Subject: |
Re: [Qemu-ppc] [PATCH 03/17] ppc: fix monitor access to CR |
Date: |
Wed, 03 Sep 2014 13:21:14 -0500 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 8/28/2014 12:14 PM, Paolo Bonzini wrote:
> This was off-by-one.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> 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 <address@hidden>
- Re: [Qemu-ppc] [PATCH 03/17] ppc: fix monitor access to CR,
Tom Musta <=