OSDN Git Service

semihosting: Add target_strlen for softmmu-uaccess.h
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Apr 2022 04:03:12 +0000 (21:03 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:06 +0000 (04:35 +0530)
commit5f9ca6f3c5111fadb0b1e76755ceaf738a98db4c
treea4ff025b0247f19696ea8be1555f7772a8237334
parentb89350e83044ee6e6e6628dd99845f3d1f53bd52
semihosting: Add target_strlen for softmmu-uaccess.h

Mirror the interface of the user-only function of the same name.
Use probe_access_flags for the common case of ram, and
cpu_memory_rw_debug for the uncommon case of mmio.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
v3: Use probe_access_flags (pmm)
include/semihosting/softmmu-uaccess.h
semihosting/uaccess.c