target/nios2: Declare QOM definitions in 'cpu-qom.h'
commitd3680640f18e3f950425e9614c36c154ff43ddb9
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 6 Oct 2023 08:30:15 +0000 (6 10:30 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 11:13:27 +0000 (7 12:13 +0100)
treea70a3cb56089381106c18e68bdb0cd29ad0779e8
parentedcea147e342a2ae1cb45a3beb40b428f93b1d1c
target/nios2: Declare QOM definitions in 'cpu-qom.h'

"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.
Add a comment clarifying that in the header.

Extract QOM definitions from "cpu.h" to "cpu-qom.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231013140116.255-10-philmd@linaro.org>
target/nios2/cpu-qom.h [new file with mode: 0644]
target/nios2/cpu.h