accel/tcg/plugin: Tidy plugin_gen_disable_mem_helpers
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 29 Jan 2023 23:28:53 +0000 (13:28 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 1 Mar 2023 17:33:28 +0000 (07:33 -1000)
commit4013884346f3bb0838f09e41dac6e735f6f576c2
tree0082f94ad94192a247c58b3b383e0f1b32711def
parent713f263a367419b8215c84ed796e80a1cf2708cf
accel/tcg/plugin: Tidy plugin_gen_disable_mem_helpers

Here we are creating a temp whose value needs to be replaced,
but always storing NULL into CPUState.plugin_mem_cbs.
Use tcg_constant_ptr(0) explicitly.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/plugin-gen.c