Re: [PATCH 07/12] hw/cxl: Pass CXLComponentState to cache_mem_ops

2024-01-24 Thread fan
On Wed, Jan 24, 2024 at 12:40:55PM +, Jonathan Cameron wrote: > From: Li Zhijian > > 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 sam

[PATCH 07/12] hw/cxl: Pass CXLComponentState to cache_mem_ops

2024-01-24 Thread Jonathan Cameron via
From: Li Zhijian 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.