qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v5 01/31] target/arm: Implement arm_v7m_cpu_has_work()


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v5 01/31] target/arm: Implement arm_v7m_cpu_has_work()
Date: Thu, 23 Sep 2021 20:06:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 9/23/21 20:01, Peter Maydell wrote:
On Thu, 23 Sept 2021 at 18:17, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
Since we provide info->class_init as arm_v7m_class_init(), only
tcg_ops and gdb_core_xml_file from CPUClass are set:

static void arm_v7m_class_init(ObjectClass *oc, void *data)
{
      ARMCPUClass *acc = ARM_CPU_CLASS(oc);
      CPUClass *cc = CPU_CLASS(oc);

      acc->info = data;
#ifdef CONFIG_TCG
      cc->tcg_ops = &arm_v7m_tcg_ops;
#endif /* CONFIG_TCG */

      cc->gdb_core_xml_file = "arm-m-profile.xml";
}

This class's parent type is TYPE_ARM_CPU; so TYPE_ARM_CPU's class_init
runs first and sets up most of the class fields. This function only
needs to set the ones which must be different on a M-profile core.

Of course... Thanks!



reply via email to

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