summaryrefslogtreecommitdiff
path: root/target-xtensa/core-fsf.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2011-10-16 02:56:06 +0400
committerBlue Swirl <blauwirbel@gmail.com>2011-10-16 10:40:16 +0000
commit935f7a2b428f71a40e985f09955bccaaf09518fa (patch)
tree2214d900a962cf8b63d676897f042ef4780a4d46 /target-xtensa/core-fsf.c
parent53add759be1a39063cfc52ca2a6d0fcdd1091697 (diff)
downloadqemu-935f7a2b428f71a40e985f09955bccaaf09518fa.tar.gz
target-xtensa: add fsf core
This is FSF big endian core implemented through linux overlay. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-xtensa/core-fsf.c')
-rw-r--r--target-xtensa/core-fsf.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/target-xtensa/core-fsf.c b/target-xtensa/core-fsf.c
new file mode 100644
index 0000000000..7650462f2f
--- /dev/null
+++ b/target-xtensa/core-fsf.c
@@ -0,0 +1,22 @@
+#include "cpu.h"
+#include "exec-all.h"
+#include "gdbstub.h"
+#include "qemu-common.h"
+#include "host-utils.h"
+
+#include "core-fsf/core-isa.h"
+#include "overlay_tool.h"
+
+static const XtensaConfig fsf = {
+ .name = "fsf",
+ .options = XTENSA_OPTIONS,
+ /* GDB for this core is not supported currently */
+ .nareg = XCHAL_NUM_AREGS,
+ .ndepc = 1,
+ EXCEPTIONS_SECTION,
+ INTERRUPTS_SECTION,
+ TLB_SECTION,
+ .clock_freq_khz = 10000,
+};
+
+REGISTER_CORE(fsf)