]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/cxl: Pass CXLComponentState to cache_mem_ops
authorLi Zhijian <lizhijian@fujitsu.com>
Fri, 26 Jan 2024 12:01:27 +0000 (12:01 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 14 Feb 2024 18:42:08 +0000 (21:42 +0300)
commit4bfbb4ed9a97876cdfa07c79116a2f6d4a3ca26b
tree4f95ca8682c87891729a8d4ab5411cc0dec1d4ab
parentb5246140deddb281de5886b640711a57dbf7df94
hw/cxl: Pass CXLComponentState to cache_mem_ops

cache_mem_ops.{read,write}() interprets opaque as
CXLComponentState(cxl_cstate) instead of ComponentRegisters(cregs).

Fortunately, cregs is the first member of cxl_cstate, so their values are
the same.

Fixes: 9e58f52d3f8 ("hw/cxl/component: Introduce CXL components (8.1.x, 8.2.5)")
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240126120132.24248-8-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 729d45a6af06753d3e330f589c248fe9687c5cd5)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/cxl/cxl-component-utils.c