target/i386/whpx: Replace legacy cpu_physical_memory_rw() call
Get the vCPU address space and convert the legacy cpu_physical_memory_rw() by address_space_rw(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20251002084203.63899-10-philmd@linaro.org>
This commit is contained in:
parent
2fd38d9c29
commit
04979ddde4
1 changed files with 5 additions and 2 deletions
|
|
@ -788,8 +788,11 @@ static HRESULT CALLBACK whpx_emu_mmio_callback(
|
|||
void *ctx,
|
||||
WHV_EMULATOR_MEMORY_ACCESS_INFO *ma)
|
||||
{
|
||||
cpu_physical_memory_rw(ma->GpaAddress, ma->Data, ma->AccessSize,
|
||||
ma->Direction);
|
||||
CPUState *cs = (CPUState *)ctx;
|
||||
AddressSpace *as = cpu_addressspace(cs, MEMTXATTRS_UNSPECIFIED);
|
||||
|
||||
address_space_rw(as, ma->GpaAddress, MEMTXATTRS_UNSPECIFIED,
|
||||
ma->Data, ma->AccessSize, ma->Direction);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue