diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-06-25 20:31:13 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-06-26 14:31:12 +0100 |
commit | c15294c1e36a7dd9b25bd54d98178e80f4b64bc1 (patch) | |
tree | 703622337a307f90aaff93e97f151d46f51338a1 /target/arm/op_helper.c | |
parent | 0d1762e931f8a694f261c604daba605bcda70928 (diff) | |
download | qemu-c15294c1e36a7dd9b25bd54d98178e80f4b64bc1.zip qemu-c15294c1e36a7dd9b25bd54d98178e80f4b64bc1.tar.gz qemu-c15294c1e36a7dd9b25bd54d98178e80f4b64bc1.tar.bz2 |
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 eb0de08..b106521 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); + } +} |