mirror of https://github.com/xemu-project/xemu.git
target/i386: Use probe_access_full_mmu in ptw_translate
The probe_access_full_mmu function was designed for this purpose,
and does not report the memory operation event to plugins.
Cc: qemu-stable@nongnu.org
Fixes: 6d03226b42
("plugins: force slow path when plugins instrument memory ops")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20241013184733.1423747-3-richard.henderson@linaro.org>
This commit is contained in:
parent
b56617bbcb
commit
115ade42d5
|
@ -62,12 +62,11 @@ typedef struct PTETranslate {
|
||||||
|
|
||||||
static bool ptw_translate(PTETranslate *inout, hwaddr addr, uint64_t ra)
|
static bool ptw_translate(PTETranslate *inout, hwaddr addr, uint64_t ra)
|
||||||
{
|
{
|
||||||
CPUTLBEntryFull *full;
|
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
inout->gaddr = addr;
|
inout->gaddr = addr;
|
||||||
flags = probe_access_full(inout->env, addr, 0, MMU_DATA_STORE,
|
flags = probe_access_full_mmu(inout->env, addr, 0, MMU_DATA_STORE,
|
||||||
inout->ptw_idx, true, &inout->haddr, &full, ra);
|
inout->ptw_idx, &inout->haddr, NULL);
|
||||||
|
|
||||||
if (unlikely(flags & TLB_INVALID_MASK)) {
|
if (unlikely(flags & TLB_INVALID_MASK)) {
|
||||||
TranslateFault *err = inout->err;
|
TranslateFault *err = inout->err;
|
||||||
|
@ -440,9 +439,8 @@ do_check_protect_pse36:
|
||||||
CPUTLBEntryFull *full;
|
CPUTLBEntryFull *full;
|
||||||
int flags, nested_page_size;
|
int flags, nested_page_size;
|
||||||
|
|
||||||
flags = probe_access_full(env, paddr, 0, access_type,
|
flags = probe_access_full_mmu(env, paddr, 0, access_type,
|
||||||
MMU_NESTED_IDX, true,
|
MMU_NESTED_IDX, &pte_trans.haddr, &full);
|
||||||
&pte_trans.haddr, &full, 0);
|
|
||||||
if (unlikely(flags & TLB_INVALID_MASK)) {
|
if (unlikely(flags & TLB_INVALID_MASK)) {
|
||||||
*err = (TranslateFault){
|
*err = (TranslateFault){
|
||||||
.error_code = env->error_code,
|
.error_code = env->error_code,
|
||||||
|
|
Loading…
Reference in New Issue