target/loongarch: Adjust functions and structure to support user-mode
commit0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3
authorSong Gao <gaosong@loongson.cn>
Fri, 24 Jun 2022 03:10:47 +0000 (24 11:10 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 4 Jul 2022 05:38:58 +0000 (4 11:08 +0530)
tree74a5b929aabcaad5f5081f03805ec8a23a95c6b1
parent9bc92b501363a5bad67ca92cf0f7256b20c401e5
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>
target/loongarch/cpu.c
target/loongarch/cpu.h
target/loongarch/helper.h
target/loongarch/insn_trans/trans_privileged.c.inc
target/loongarch/internals.h
target/loongarch/op_helper.c