qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 10/10] hw: honor low bit in mipssim machine


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 10/10] hw: honor low bit in mipssim machine
Date: Fri, 04 Jun 2010 11:37:01 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4

On 05/24/2010 09:19 AM, Nathan Froyd wrote:
> Signed-off-by: Nathan Froyd <address@hidden>
> ---
>  hw/mips_mipssim.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c
> index a747de5..cd6c2be 100644
> --- a/hw/mips_mipssim.c
> +++ b/hw/mips_mipssim.c
> @@ -106,7 +106,9 @@ static void main_cpu_reset(void *opaque)
>      CPUState *env = s->env;
>  
>      cpu_reset(env);
> -    env->active_tc.PC = s->vector;
> +    env->active_tc.PC = s->vector & ~(target_ulong)1;
> +    if (s->vector & 1)
> +        env->hflags |= MIPS_HFLAG_M16;

Coding style.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]