summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch')
-rw-r--r--meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch54
1 files changed, 0 insertions, 54 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch b/meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch
deleted file mode 100644
index c4dbee7d71..0000000000
--- a/meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch
+++ /dev/null
@@ -1,54 +0,0 @@
1From 926bc194f918d46bd93557b15da8153b6a94a1d5 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
3Date: Mon, 25 Jul 2016 23:58:22 +0100
4Subject: [PATCH] target-mips: add 24KEc CPU definition
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Define a new CPU definition supporting 24KEc cores, similar to
10the existing 24Kc, but with added support for DSP instructions
11and MIPS16e (and without FPU).
12
13Signed-off-by: André Draszik <git@andred.net>
14---
15Upstream-Status: Submitted [http://lists.nongnu.org/archive/html/qemu-devel/2016-07/msg05778.html]
16 target-mips/translate_init.c | 22 ++++++++++++++++++++++
17 1 file changed, 22 insertions(+)
18
19diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c
20index 39ed5c4..6ae23e4 100644
21--- a/target-mips/translate_init.c
22+++ b/target-mips/translate_init.c
23@@ -256,6 +256,28 @@ static const mips_def_t mips_defs[] =
24 .mmu_type = MMU_TYPE_R4000,
25 },
26 {
27+ .name = "24KEc",
28+ .CP0_PRid = 0x00019600,
29+ .CP0_Config0 = MIPS_CONFIG0 | (0x1 << CP0C0_AR) |
30+ (MMU_TYPE_R4000 << CP0C0_MT),
31+ .CP0_Config1 = MIPS_CONFIG1 | (15 << CP0C1_MMU) |
32+ (0 << CP0C1_IS) | (3 << CP0C1_IL) | (1 << CP0C1_IA) |
33+ (0 << CP0C1_DS) | (3 << CP0C1_DL) | (1 << CP0C1_DA) |
34+ (1 << CP0C1_CA),
35+ .CP0_Config2 = MIPS_CONFIG2,
36+ .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_DSPP) | (0 << CP0C3_VInt),
37+ .CP0_LLAddr_rw_bitmask = 0,
38+ .CP0_LLAddr_shift = 4,
39+ .SYNCI_Step = 32,
40+ .CCRes = 2,
41+ /* we have a DSP, but no FPU */
42+ .CP0_Status_rw_bitmask = 0x1378FF1F,
43+ .SEGBITS = 32,
44+ .PABITS = 32,
45+ .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP,
46+ .mmu_type = MMU_TYPE_R4000,
47+ },
48+ {
49 .name = "24Kf",
50 .CP0_PRid = 0x00019300,
51 .CP0_Config0 = MIPS_CONFIG0 | (0x1 << CP0C0_AR) |
52--
532.8.1
54