summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-11-15 22:33:05 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-11-15 22:33:05 +0000
commitc46c2b636cc9c434ac3e7b4c668e1875a421897a (patch)
tree32f1c4c4a3b519909078236ed66da0c2fff25183 /c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
parent2009-11-14 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-c46c2b636cc9c434ac3e7b4c668e1875a421897a.tar.bz2
2009-11-15 Till Straumann <strauman@slac.stanford.edu>
* shared/include/cpuIdent.c: Set 604 features + altivec if running on PSIM.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c')
-rw-r--r--c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
index e8e6a0f7ff..de91e7a90a 100644
--- a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
+++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
@@ -123,6 +123,16 @@ ppc_cpu_id_t get_ppc_cpu_type(void)
case PPC_7457:
current_ppc_features.has_8_bats = 1;
case PPC_7400:
+ /* NOTE: PSIM PVR doesn't tell us anything (its
+ * contents are not set based on what model
+ * the uses chooses but has to be programmed via
+ * the device file with the special value 0xfffe
+ * telling us that we have a 'psim cpu').
+ *
+ * I'm not sure pagetables work if the user chooses
+ * e.g., the 603 model...
+ */
+ case PPC_PSIM:
current_ppc_features.has_altivec = 1;
case PPC_604:
case PPC_604e: