diff options
author | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> | 2014-11-24 07:59:01 -0500 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-16 05:01:24 -0500 |
commit | 4695089f03929c8cfa58470faf6e1e041bfb285a (patch) | |
tree | 8e825b5822c5f0253a2e29a6523025b8d0f98005 | |
parent | aca5721e9524de0306ba914e678365fcb704c60c (diff) |
MIPS: Add cases for CPU_QEMU_GENERIC
Add a CPU_QEMU_GENERIC case to various switch statements.
Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
-rw-r--r-- | arch/mips/include/asm/cpu-type.h | 7 | ||||
-rw-r--r-- | arch/mips/kernel/idle.c | 1 | ||||
-rw-r--r-- | arch/mips/kernel/spram.c | 1 | ||||
-rw-r--r-- | arch/mips/kernel/traps.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/c-r4k.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/sc-mips.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/tlbex.c | 1 |
7 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-type.h b/arch/mips/include/asm/cpu-type.h index b4e2bd87df50..8245875f8b33 100644 --- a/arch/mips/include/asm/cpu-type.h +++ b/arch/mips/include/asm/cpu-type.h | |||
@@ -54,6 +54,13 @@ static inline int __pure __get_cpu_type(const int cpu_type) | |||
54 | case CPU_M5150: | 54 | case CPU_M5150: |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #if defined(CONFIG_SYS_HAS_CPU_MIPS32_R2) || \ | ||
58 | defined(CONFIG_SYS_HAS_CPU_MIPS32_R6) || \ | ||
59 | defined(CONFIG_SYS_HAS_CPU_MIPS64_R2) || \ | ||
60 | defined(CONFIG_SYS_HAS_CPU_MIPS64_R6) | ||
61 | case CPU_QEMU_GENERIC: | ||
62 | #endif | ||
63 | |||
57 | #ifdef CONFIG_SYS_HAS_CPU_MIPS64_R1 | 64 | #ifdef CONFIG_SYS_HAS_CPU_MIPS64_R1 |
58 | case CPU_5KC: | 65 | case CPU_5KC: |
59 | case CPU_5KE: | 66 | case CPU_5KE: |
diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c index 0b9082b6b683..368c88b7eb6c 100644 --- a/arch/mips/kernel/idle.c +++ b/arch/mips/kernel/idle.c | |||
@@ -186,6 +186,7 @@ void __init check_wait(void) | |||
186 | case CPU_PROAPTIV: | 186 | case CPU_PROAPTIV: |
187 | case CPU_P5600: | 187 | case CPU_P5600: |
188 | case CPU_M5150: | 188 | case CPU_M5150: |
189 | case CPU_QEMU_GENERIC: | ||
189 | cpu_wait = r4k_wait; | 190 | cpu_wait = r4k_wait; |
190 | if (read_c0_config7() & MIPS_CONF7_WII) | 191 | if (read_c0_config7() & MIPS_CONF7_WII) |
191 | cpu_wait = r4k_wait_irqoff; | 192 | cpu_wait = r4k_wait_irqoff; |
diff --git a/arch/mips/kernel/spram.c b/arch/mips/kernel/spram.c index 67f2495def1c..d1168d7c31e8 100644 --- a/arch/mips/kernel/spram.c +++ b/arch/mips/kernel/spram.c | |||
@@ -208,6 +208,7 @@ void spram_config(void) | |||
208 | case CPU_INTERAPTIV: | 208 | case CPU_INTERAPTIV: |
209 | case CPU_PROAPTIV: | 209 | case CPU_PROAPTIV: |
210 | case CPU_P5600: | 210 | case CPU_P5600: |
211 | case CPU_QEMU_GENERIC: | ||
211 | config0 = read_c0_config(); | 212 | config0 = read_c0_config(); |
212 | /* FIXME: addresses are Malta specific */ | 213 | /* FIXME: addresses are Malta specific */ |
213 | if (config0 & (1<<24)) { | 214 | if (config0 & (1<<24)) { |
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index d5fbfb51b9da..461653ea28c8 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -1559,6 +1559,7 @@ static inline void parity_protection_init(void) | |||
1559 | case CPU_INTERAPTIV: | 1559 | case CPU_INTERAPTIV: |
1560 | case CPU_PROAPTIV: | 1560 | case CPU_PROAPTIV: |
1561 | case CPU_P5600: | 1561 | case CPU_P5600: |
1562 | case CPU_QEMU_GENERIC: | ||
1562 | { | 1563 | { |
1563 | #define ERRCTL_PE 0x80000000 | 1564 | #define ERRCTL_PE 0x80000000 |
1564 | #define ERRCTL_L2P 0x00800000 | 1565 | #define ERRCTL_L2P 0x00800000 |
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index dd261df005c2..b806deb29e63 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -1255,6 +1255,7 @@ static void probe_pcache(void) | |||
1255 | case CPU_P5600: | 1255 | case CPU_P5600: |
1256 | case CPU_PROAPTIV: | 1256 | case CPU_PROAPTIV: |
1257 | case CPU_M5150: | 1257 | case CPU_M5150: |
1258 | case CPU_QEMU_GENERIC: | ||
1258 | if (!(read_c0_config7() & MIPS_CONF7_IAR) && | 1259 | if (!(read_c0_config7() & MIPS_CONF7_IAR) && |
1259 | (c->icache.waysize > PAGE_SIZE)) | 1260 | (c->icache.waysize > PAGE_SIZE)) |
1260 | c->icache.flags |= MIPS_CACHE_ALIASES; | 1261 | c->icache.flags |= MIPS_CACHE_ALIASES; |
diff --git a/arch/mips/mm/sc-mips.c b/arch/mips/mm/sc-mips.c index 99eb8fabab60..fd9b5d45e91b 100644 --- a/arch/mips/mm/sc-mips.c +++ b/arch/mips/mm/sc-mips.c | |||
@@ -81,6 +81,7 @@ static inline int mips_sc_is_activated(struct cpuinfo_mips *c) | |||
81 | case CPU_PROAPTIV: | 81 | case CPU_PROAPTIV: |
82 | case CPU_P5600: | 82 | case CPU_P5600: |
83 | case CPU_BMIPS5000: | 83 | case CPU_BMIPS5000: |
84 | case CPU_QEMU_GENERIC: | ||
84 | if (config2 & (1 << 12)) | 85 | if (config2 & (1 << 12)) |
85 | return 0; | 86 | return 0; |
86 | } | 87 | } |
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index 3978a3d81366..ff8d99ce3b9b 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -514,6 +514,7 @@ static void build_tlb_write_entry(u32 **p, struct uasm_label **l, | |||
514 | case CPU_PROAPTIV: | 514 | case CPU_PROAPTIV: |
515 | case CPU_P5600: | 515 | case CPU_P5600: |
516 | case CPU_M5150: | 516 | case CPU_M5150: |
517 | case CPU_QEMU_GENERIC: | ||
517 | break; | 518 | break; |
518 | 519 | ||
519 | default: | 520 | default: |