mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
hw/cxl: Push linking of CXL targets into i386/pc rather than in machine.c
Whilst here take the oportunity to shorten the function name. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Message-Id: <20220608145440.26106-4-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
513598050a
commit
dab390ff24
6 changed files with 10 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
|||
#include "hw/cxl/cxl.h"
|
||||
#include "hw/cxl/cxl_host.h"
|
||||
|
||||
void cxl_fixed_memory_window_link_targets(Error **errp) {};
|
||||
void cxl_fmws_link_targets(CXLState *stat, Error **errp) {};
|
||||
void cxl_machine_init(Object *obj, CXLState *state) {};
|
||||
|
||||
const MemoryRegionOps cfmws_ops;
|
||||
|
|
|
@ -68,14 +68,12 @@ static void cxl_fixed_memory_window_config(CXLState *cxl_state,
|
|||
return;
|
||||
}
|
||||
|
||||
void cxl_fixed_memory_window_link_targets(Error **errp)
|
||||
void cxl_fmws_link_targets(CXLState *cxl_state, Error **errp)
|
||||
{
|
||||
MachineState *ms = MACHINE(qdev_get_machine());
|
||||
|
||||
if (ms->cxl_devices_state && ms->cxl_devices_state->fixed_windows) {
|
||||
if (cxl_state && cxl_state->fixed_windows) {
|
||||
GList *it;
|
||||
|
||||
for (it = ms->cxl_devices_state->fixed_windows; it; it = it->next) {
|
||||
for (it = cxl_state->fixed_windows; it; it = it->next) {
|
||||
CXLFixedWindow *fw = it->data;
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue