From c46c2b636cc9c434ac3e7b4c668e1875a421897a Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Sun, 15 Nov 2009 22:33:05 +0000 Subject: 2009-11-15 Till Straumann * shared/include/cpuIdent.c: Set 604 features + altivec if running on PSIM. --- c/src/lib/libcpu/powerpc/ChangeLog | 5 +++++ c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c | 10 ++++++++++ 2 files changed, 15 insertions(+) (limited to 'c/src/lib') diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 22110ad95e..a32e4abd61 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,8 @@ +2009-11-15 Till Straumann + + * shared/include/cpuIdent.c: Set 604 features + altivec if + running on PSIM. + 2009-11-03 Thomas Doerfler * shared/include/powerpc-utility.h, shared/include/byteorder.h, 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: -- cgit v1.2.3