qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] linux-user: i386: Use trapnr which returns from cpu_exec() i


From: Richard Henderson
Subject: Re: [PATCH] linux-user: i386: Use trapnr which returns from cpu_exec() instead of exception_index
Date: Sun, 27 Sep 2020 10:54:23 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 9/26/20 3:39 AM, chengang@emindsoft.com.cn wrote:
> +++ b/include/hw/core/cpu.h
> @@ -458,6 +458,8 @@ struct CPUState {
>  
>      /* track IOMMUs whose translations we've cached in the TCG TLB */
>      GArray *iommu_notifiers;
> +
> +    int trapnr;

Don't put this here.  It belongs in CPUX86State, possibly with #ifdef
CONFIG_USER_ONLY.



>  void cpu_loop(CPUX86State *env)
>  {
>      CPUState *cs = env_cpu(env);
> -    int trapnr;

Why are you removing the local variable?


r~



reply via email to

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