aboutsummaryrefslogtreecommitdiff
path: root/target/arm/tcg/a64.decode
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-05-12 15:40:50 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-05-18 11:28:38 +0100
commit45fda88ea2185699c2bc1e3339a16db59b40eb72 (patch)
tree57b8cb64ebd275a5e65e88f3e981d56fb95123c7 /target/arm/tcg/a64.decode
parent270076d01ac6bc7cd2a6e0830507c5f5f538d161 (diff)
downloadqemu-45fda88ea2185699c2bc1e3339a16db59b40eb72.zip
qemu-45fda88ea2185699c2bc1e3339a16db59b40eb72.tar.gz
qemu-45fda88ea2185699c2bc1e3339a16db59b40eb72.tar.bz2
target/arm: Convert PC-rel addressing to decodetree
Convert the ADR and ADRP instructions. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20230512144106.3608981-5-peter.maydell@linaro.org [PMM: Rebased] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/tcg/a64.decode')
-rw-r--r--target/arm/tcg/a64.decode13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/arm/tcg/a64.decode b/target/arm/tcg/a64.decode
index 43321bb..bcf46fc 100644
--- a/target/arm/tcg/a64.decode
+++ b/target/arm/tcg/a64.decode
@@ -18,3 +18,16 @@
#
# This file is processed by scripts/decodetree.py
#
+
+&ri rd imm
+
+
+### Data Processing - Immediate
+
+# PC-rel addressing
+
+%imm_pcrel 5:s19 29:2
+@pcrel . .. ..... ................... rd:5 &ri imm=%imm_pcrel
+
+ADR 0 .. 10000 ................... ..... @pcrel
+ADRP 1 .. 10000 ................... ..... @pcrel