OSDN Git Service

accel/tcg: Simplify page_get/alloc_target_data
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Oct 2022 22:40:22 +0000 (15:40 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 26 Oct 2022 01:11:28 +0000 (11:11 +1000)
commit8269c01417a3e0bdb444b1bdac1d9b6c8bc9e667
tree2b4f78b28762cc3939822cd6c4ac0b3af724b12e
parent0fe6108432ebbabbe12e53fba462770acb858a87
accel/tcg: Simplify page_get/alloc_target_data

Since the only user, Arm MTE, always requires allocation,
merge the get and alloc functions to always produce a
non-null result.  Also assume that the user has already
checked page validity.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/user-exec.c
include/exec/cpu-all.h
target/arm/mte_helper.c