diff options
author | André Draszik <git@andred.net> | 2016-07-26 16:48:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-01 11:46:35 +0100 |
commit | b89bd412a69bfda262ed795e970b362ddbec6c68 (patch) | |
tree | 5bb7fdf88ba1fff98ecd834cb00b183696e41a8f /meta | |
parent | 45bc8a2c4bbe252526d5eee2547f8b9e06165e5a (diff) | |
download | openembedded-core-contrib-b89bd412a69bfda262ed795e970b362ddbec6c68.tar.gz |
qemu: add patch to add mips 24KEc CPU definition
This patch has been accepted upstream:
http://lists.nongnu.org/archive/html/qemu-devel/2016-07/msg05778.html
Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index b865223db5d..d724aa4bd93 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc @@ -21,6 +21,7 @@ SRC_URI = "\ file://wacom.patch \ file://add-ptest-in-makefile.patch \ file://run-ptest \ + file://0001-target-mips-add-24KEc-CPU-definition.patch \ " SRC_URI_append_class-native = "\ 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 new file mode 100644 index 00000000000..c4dbee7d71d --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/0001-target-mips-add-24KEc-CPU-definition.patch @@ -0,0 +1,54 @@ +From 926bc194f918d46bd93557b15da8153b6a94a1d5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net> +Date: Mon, 25 Jul 2016 23:58:22 +0100 +Subject: [PATCH] target-mips: add 24KEc CPU definition +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Define a new CPU definition supporting 24KEc cores, similar to +the existing 24Kc, but with added support for DSP instructions +and MIPS16e (and without FPU). + +Signed-off-by: André Draszik <git@andred.net> +--- +Upstream-Status: Submitted [http://lists.nongnu.org/archive/html/qemu-devel/2016-07/msg05778.html] + target-mips/translate_init.c | 22 ++++++++++++++++++++++ + 1 file changed, 22 insertions(+) + +diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c +index 39ed5c4..6ae23e4 100644 +--- a/target-mips/translate_init.c ++++ b/target-mips/translate_init.c +@@ -256,6 +256,28 @@ static const mips_def_t mips_defs[] = + .mmu_type = MMU_TYPE_R4000, + }, + { ++ .name = "24KEc", ++ .CP0_PRid = 0x00019600, ++ .CP0_Config0 = MIPS_CONFIG0 | (0x1 << CP0C0_AR) | ++ (MMU_TYPE_R4000 << CP0C0_MT), ++ .CP0_Config1 = MIPS_CONFIG1 | (15 << CP0C1_MMU) | ++ (0 << CP0C1_IS) | (3 << CP0C1_IL) | (1 << CP0C1_IA) | ++ (0 << CP0C1_DS) | (3 << CP0C1_DL) | (1 << CP0C1_DA) | ++ (1 << CP0C1_CA), ++ .CP0_Config2 = MIPS_CONFIG2, ++ .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_DSPP) | (0 << CP0C3_VInt), ++ .CP0_LLAddr_rw_bitmask = 0, ++ .CP0_LLAddr_shift = 4, ++ .SYNCI_Step = 32, ++ .CCRes = 2, ++ /* we have a DSP, but no FPU */ ++ .CP0_Status_rw_bitmask = 0x1378FF1F, ++ .SEGBITS = 32, ++ .PABITS = 32, ++ .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP, ++ .mmu_type = MMU_TYPE_R4000, ++ }, ++ { + .name = "24Kf", + .CP0_PRid = 0x00019300, + .CP0_Config0 = MIPS_CONFIG0 | (0x1 << CP0C0_AR) | +-- +2.8.1 + |