2009-12-01 Till Straumann <strauman@slac.stanford.edu>

* Makefile.am, start/start.S: Added AltiVec support
	(only effective if user modifies psim.cfg: CPU_CFLAGS
	choosing a CPU architecture with AltiVec or directly
	adding -maltivec, -mabi=altivec).

	* start/start.S: removed '.file' statement which
	confused gdb.
This commit is contained in:
Till Straumann
2009-12-02 01:46:45 +00:00
parent c7f8408d31
commit 6ce625ef5d
3 changed files with 28 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
2009-12-01 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, start/start.S: Added AltiVec support
(only effective if user modifies psim.cfg: CPU_CFLAGS
choosing a CPU architecture with AltiVec or directly
adding -maltivec, -mabi=altivec).
* start/start.S: removed '.file' statement which
confused gdb.
2009-11-15 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c: use normal get_ppc_cpu_type()

View File

@@ -78,7 +78,8 @@ libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
../../../libcpu/@RTEMS_CPU@/@exceptions@/exc_bspsupport.rel \
../../../libcpu/@RTEMS_CPU@/@exceptions@/irq_bspsupport.rel \
../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \
../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel
../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \
../../../libcpu/@RTEMS_CPU@/mpc6xx/altivec.rel
include $(srcdir)/preinstall.am
include $(top_srcdir)/../../../../automake/local.am

View File

@@ -22,7 +22,6 @@
#include <libcpu/io.h>
#include "ppc-asm.h"
.file "startsim.s"
.section ".got2","aw"
.align 2
@@ -98,6 +97,22 @@ _start:
mr sp,r0 /* use user defined stack */
.Lnostack:
#ifdef __ALTIVEC__
/* enable altivec; this requires the ALTIVEC user
* extension to be installed in the user extension
* slot 0!
*/
mfmsr r0
oris r0, r0, (1<<(31-16-6))
mtmsr r0
/*
* set vscr and vrsave to known values
*/
li r0, 0
mtvrsave r0
vxor 0,0,0
mtvscr 0
#endif
/* set up initial stack frame */
addi sp,sp,-4 /* make sure we don't overwrite debug mem */
/* align */