target/i386/nvmm: Inline cpu_physical_memory_rw() in nvmm_mem_callback
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20251002084203.63899-12-philmd@linaro.org>
This commit is contained in:
parent
12a65afbbf
commit
5699f6a440
1 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include "accel/accel-ops.h"
|
||||
#include "system/nvmm.h"
|
||||
#include "system/cpus.h"
|
||||
#include "system/memory.h"
|
||||
#include "system/runstate.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "qemu/error-report.h"
|
||||
|
|
@ -516,7 +517,9 @@ nvmm_io_callback(struct nvmm_io *io)
|
|||
static void
|
||||
nvmm_mem_callback(struct nvmm_mem *mem)
|
||||
{
|
||||
cpu_physical_memory_rw(mem->gpa, mem->data, mem->size, mem->write);
|
||||
/* TODO: Get CPUState via mem->vcpu? */
|
||||
address_space_rw(&address_space_memory, mem->gpa, MEMTXATTRS_UNSPECIFIED,
|
||||
mem->data, mem->size, mem->write);
|
||||
|
||||
/* Needed, otherwise infinite loop. */
|
||||
current_cpu->vcpu_dirty = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue