diff options
author | Richard Henderson | 2020-06-26 05:31:13 +0200 |
---|---|---|
committer | Peter Maydell | 2020-06-26 15:31:12 +0200 |
commit | c15294c1e36a7dd9b25bd54d98178e80f4b64bc1 (patch) | |
tree | 703622337a307f90aaff93e97f151d46f51338a1 /target/arm/op_helper.c | |
parent | target/arm: Define arm_cpu_do_unaligned_access for user-only (diff) | |
download | qemu-c15294c1e36a7dd9b25bd54d98178e80f4b64bc1.tar.gz qemu-c15294c1e36a7dd9b25bd54d98178e80f4b64bc1.tar.xz qemu-c15294c1e36a7dd9b25bd54d98178e80f4b64bc1.zip |
target/arm: Implement LDG, STG, ST2G instructions
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200626033144.790098-16-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/op_helper.c')
-rw-r--r-- | target/arm/op_helper.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/arm/op_helper.c b/target/arm/op_helper.c index eb0de080f1..b1065216b2 100644 --- a/target/arm/op_helper.c +++ b/target/arm/op_helper.c @@ -935,3 +935,19 @@ uint32_t HELPER(ror_cc)(CPUARMState *env, uint32_t x, uint32_t i) return ((uint32_t)x >> shift) | (x << (32 - shift)); } } + +void HELPER(probe_access)(CPUARMState *env, target_ulong ptr, + uint32_t access_type, uint32_t mmu_idx, + uint32_t size) +{ + uint32_t in_page = -((uint32_t)ptr | TARGET_PAGE_SIZE); + uintptr_t ra = GETPC(); + + if (likely(size <= in_page)) { + probe_access(env, ptr, size, access_type, mmu_idx, ra); + } else { + probe_access(env, ptr, in_page, access_type, mmu_idx, ra); + probe_access(env, ptr + in_page, size - in_page, + access_type, mmu_idx, ra); + } +} |