"target/foo/cpu.h" contains the target specific declarations.
A heterogeneous setup need to access target agnostic declarations
(at least the QOM ones, to instantiate the objects).
Our convention is to add such target agnostic QOM declarations in
the "target/foo/cpu-qom.h" header.
Extract QOM definitions from "cpu.h" to "cpu-qom.h".
Reviewed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/loongarch/cpu-qom.h | 24 ++++++++++++++++++++++++
target/loongarch/cpu.h | 10 +---------
2 files changed, 25 insertions(+), 9 deletions(-)
create mode 100644 target/loongarch/cpu-qom.h