qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v5 08/31] accel/tcg: Implement AccelOpsClass::has_work() as s


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v5 08/31] accel/tcg: Implement AccelOpsClass::has_work() as stub
Date: Thu, 23 Sep 2021 19:18:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 9/21/21 00:01, Richard Henderson wrote:
On 9/20/21 2:44 PM, Philippe Mathieu-Daudé wrote:
+static bool tcg_cpu_has_work(CPUState *cpu)
+{
+    CPUClass *cc = CPU_GET_CLASS(cpu);
+
+    g_assert(cc->tcg_ops->has_work);
+    return cc->tcg_ops->has_work(cpu);
+}

Now, you're expecting cc->has_work to disappear as cc->tcg_ops->has_work appears.  If we're expecting cc->has_work to not affect other accelerators, then I think you should first move cc->has_work to this function, *before* you add the tcg_ops hook.

Indeed, thanks.



reply via email to

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