cpu: move adjust_watchpoint_address to tcg_ops
authorClaudio Fontana <cfontana@suse.de>
Thu, 4 Feb 2021 16:39:21 +0000 (17:39 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 Feb 2021 20:24:14 +0000 (10:24 -1000)
commit9ea9087bb4a86893e4ac6ff643837937dc9e5849
tree18d5e4836991b95e527f3f81eba767cd3bb63a0f
parent79fc8d45116b4b07eeab53feea1d209955b0ecdd
cpu: move adjust_watchpoint_address to tcg_ops

commit 40612000599e ("arm: Correctly handle watchpoints for BE32 CPUs")

introduced this ARM-specific, TCG-specific hack to adjust the address,
before checking it with cpu_check_watchpoint.

Make adjust_watchpoint_address optional and move it to tcg_ops.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210204163931.7358-14-cfontana@suse.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/core/cpu.c
include/hw/core/cpu.h
softmmu/physmem.c
target/arm/cpu.c