]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/loongarch/internals.h
target/loongarch: Add core definition
[mirror_qemu.git] / target / loongarch / internals.h
diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h
new file mode 100644 (file)
index 0000000..9f02287
--- /dev/null
@@ -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