|
From: | Richard Henderson |
Subject: | Re: [PATCH v5 2/7] plugins: save value during memory accesses |
Date: | Fri, 5 Jul 2024 09:34:26 -0700 |
User-agent: | Mozilla Thunderbird |
On 7/4/24 17:34, Pierrick Bouvier wrote:
+static void +plugin_gen_mem_callbacks_i32(TCGv_i32 val, + TCGv_i64 copy_addr, TCGTemp *orig_addr, + MemOpIdx oi, enum qemu_plugin_mem_rw rw) +{ +#ifdef CONFIG_PLUGIN + if (tcg_ctx->plugin_insn != NULL) { + tcg_gen_st_i32(val, tcg_env, + offsetof(CPUState, neg.plugin_mem_value_low) - + sizeof(CPUState)); + plugin_gen_mem_callbacks(copy_addr, orig_addr, oi, rw); + } +#endif +}
You need the big-endian offset for the low half of the uint64_t: HOST_BIG_ENDIAN * 4. r~
[Prev in Thread] | Current Thread | [Next in Thread] |