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 /arch/mips/mm | |
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>
Diffstat (limited to 'arch/mips/mm')
-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 |
3 files changed, 3 insertions, 0 deletions
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: |