diff options
author | Song Gao <gaosong@loongson.cn> | 2022-06-06 20:42:52 +0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-06 18:09:03 +0000 |
commit | 228021f05ebfd89a3abc225d47a0d0e6c139dade (patch) | |
tree | 870881ac9e6f00bc26acb2706925ad5c9036b4e7 /target/loongarch/internals.h | |
parent | 64baad62cd3d9f2e57f65a8f3be7b5639a77e0b4 (diff) | |
download | qemu-228021f05ebfd89a3abc225d47a0d0e6c139dade.zip qemu-228021f05ebfd89a3abc225d47a0d0e6c139dade.tar.gz qemu-228021f05ebfd89a3abc225d47a0d0e6c139dade.tar.bz2 |
target/loongarch: Add core definition
This patch adds target state header, target definitions
and initialization routines.
Signed-off-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220606124333.2060567-3-yangxiaojuan@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 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h new file mode 100644 index 0000000..9f02287 --- /dev/null +++ b/target/loongarch/internals.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * QEMU LoongArch CPU -- internal functions and types + * + * Copyright (c) 2021 Loongson Technology Corporation Limited + */ + +#ifndef LOONGARCH_INTERNALS_H +#define LOONGARCH_INTERNALS_H + +void loongarch_translate_init(void); + +void loongarch_cpu_dump_state(CPUState *cpu, FILE *f, int flags); + +void G_NORETURN do_raise_exception(CPULoongArchState *env, + uint32_t exception, + uintptr_t pc); + +const char *loongarch_exception_name(int32_t exception); + +#endif |