aboutsummaryrefslogtreecommitdiff
path: root/target/loongarch/helper.h
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2022-06-24 11:10:47 +0800
committerRichard Henderson <richard.henderson@linaro.org>2022-07-04 11:08:58 +0530
commit0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3 (patch)
tree74a5b929aabcaad5f5081f03805ec8a23a95c6b1 /target/loongarch/helper.h
parent9bc92b501363a5bad67ca92cf0f7256b20c401e5 (diff)
downloadqemu-0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3.zip
qemu-0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3.tar.gz
qemu-0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3.tar.bz2
target/loongarch: Adjust functions and structure to support user-mode
Some functions and member of the structure are different with softmmu-mode So we need adjust them to support user-mode. Signed-off-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220624031049.1716097-12-gaosong@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/loongarch/helper.h')
-rw-r--r--target/loongarch/helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/loongarch/helper.h b/target/loongarch/helper.h
index 85c11a6..cbbe008 100644
--- a/target/loongarch/helper.h
+++ b/target/loongarch/helper.h
@@ -95,6 +95,7 @@ DEF_HELPER_FLAGS_2(set_rounding_mode, TCG_CALL_NO_RWG, void, env, i32)
DEF_HELPER_1(rdtime_d, i64, env)
+#ifndef CONFIG_USER_ONLY
/* CSRs helper */
DEF_HELPER_1(csrrd_pgd, i64, env)
DEF_HELPER_1(csrrd_tval, i64, env)
@@ -128,3 +129,4 @@ DEF_HELPER_4(lddir, tl, env, tl, tl, i32)
DEF_HELPER_4(ldpte, void, env, tl, tl, i32)
DEF_HELPER_1(ertn, void, env)
DEF_HELPER_1(idle, void, env)
+#endif