accel: introduce AccelCPUClass extending CPUClass
commitfb6916dd6ca8bb4b42d44baba9c67ecaf2279577
authorClaudio Fontana <cfontana@suse.de>
Thu, 4 Feb 2021 16:39:26 +0000 (4 17:39 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Feb 2021 20:24:15 +0000 (5 10:24 -1000)
tree692eb654bd23ed45bcacc3f993d1d9fd29144f91
parentb86f59c71552591a17dd21ba8f09654bfa19a31e
accel: introduce AccelCPUClass extending CPUClass

add a new optional interface to CPUClass, which allows accelerators
to extend the CPUClass with additional accelerator-specific
initializations.

This will allow to separate the target cpu code that is specific
to each accelerator, and register it automatically with object
hierarchy lookup depending on accelerator code availability,
as part of the accel_init_interfaces() initialization step.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Message-Id: <20210204163931.7358-19-cfontana@suse.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
MAINTAINERS
accel/accel-common.c
include/hw/core/accel-cpu.h [new file with mode: 0644]
include/hw/core/cpu.h