summaryrefslogtreecommitdiffstats
path: root/linux-user/xtensa/target_elf.h
diff options
context:
space:
mode:
authorMax Filippov2017-01-25 19:54:11 +0100
committerMax Filippov2018-03-16 17:40:34 +0100
commitba7651fba54199e5dedbbd08157687291b9dbae3 (patch)
treef03b970e3cfdfde9040ff14c59dc0bf3acfb6fe3 /linux-user/xtensa/target_elf.h
parentlinux-user: drop unused target_msync function (diff)
downloadqemu-ba7651fba54199e5dedbbd08157687291b9dbae3.tar.gz
qemu-ba7651fba54199e5dedbbd08157687291b9dbae3.tar.xz
qemu-ba7651fba54199e5dedbbd08157687291b9dbae3.zip
target/xtensa: add linux-user support
Import list of syscalls from the kernel source. Conditionalize code/data that is only used with softmmu. Implement exception handlers. Implement signal hander (only the core registers for now, no coprocessors or TIE). Cc: Riku Voipio <riku.voipio@iki.fi> Cc: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'linux-user/xtensa/target_elf.h')
-rw-r--r--linux-user/xtensa/target_elf.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/linux-user/xtensa/target_elf.h b/linux-user/xtensa/target_elf.h
new file mode 100644
index 0000000000..a9a3fabd89
--- /dev/null
+++ b/linux-user/xtensa/target_elf.h
@@ -0,0 +1,16 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation, or (at your option) any
+ * later version. See the COPYING file in the top-level directory.
+ */
+
+#ifndef XTENSA_TARGET_ELF_H
+#define XTENSA_TARGET_ELF_H
+
+static inline const char *cpu_get_model(uint32_t eflags)
+{
+ return XTENSA_DEFAULT_CPU_MODEL;
+}
+
+#endif