diff options
| author | Song Gao <gaosong@loongson.cn> | 2022-06-24 11:10:47 +0800 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2022-07-04 11:08:58 +0530 |
| commit | 0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3 (patch) | |
| tree | 74a5b929aabcaad5f5081f03805ec8a23a95c6b1 /target/loongarch/internals.h | |
| parent | 9bc92b501363a5bad67ca92cf0f7256b20c401e5 (diff) | |
| download | focaccia-qemu-0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3.tar.gz focaccia-qemu-0093b9a5eeee6304fbd6e4f5be6b47820c4d55e3.zip | |
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/internals.h')
| -rw-r--r-- | target/loongarch/internals.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h index 9d50fbdd81..ea227362b6 100644 --- a/target/loongarch/internals.h +++ b/target/loongarch/internals.h @@ -33,6 +33,7 @@ const char *loongarch_exception_name(int32_t exception); void restore_fp_status(CPULoongArchState *env); +#ifndef CONFIG_USER_ONLY extern const VMStateDescription vmstate_loongarch_cpu; void loongarch_cpu_set_irq(void *opaque, int irq, int level); @@ -48,6 +49,7 @@ bool loongarch_cpu_tlb_fill(CPUState *cs, vaddr address, int size, bool probe, uintptr_t retaddr); hwaddr loongarch_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); +#endif /* !CONFIG_USER_ONLY */ int loongarch_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n); int loongarch_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n); |