1
0

320-ppc4xx_optimization.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. Upstream doesn't optimize the kernel and bootwrappers for ppc44x because
  2. they still want to support gcc 3.3 -- well, we don't.
  3. --- a/arch/powerpc/Makefile
  4. +++ b/arch/powerpc/Makefile
  5. @@ -203,7 +203,8 @@ ifeq ($(CONFIG_FUNCTION_TRACER),y)
  6. KBUILD_CFLAGS += -mno-sched-epilog
  7. endif
  8. -cpu-as-$(CONFIG_4xx) += -Wa,-m405
  9. +cpu-as-$(CONFIG_40x) += -Wa,-m405
  10. +cpu-as-$(CONFIG_44x) += -Wa,-m440
  11. cpu-as-$(CONFIG_ALTIVEC) += -Wa,-maltivec
  12. cpu-as-$(CONFIG_E200) += -Wa,-me200
  13. --- a/arch/powerpc/boot/Makefile
  14. +++ b/arch/powerpc/boot/Makefile
  15. @@ -45,10 +45,10 @@ BOOTCFLAGS += -I$(obj) -I$(srctree)/$(ob
  16. DTC_FLAGS ?= -p 1024
  17. $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405
  18. -$(obj)/ebony.o: BOOTCFLAGS += -mcpu=405
  19. +$(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
  20. $(obj)/cuboot-hotfoot.o: BOOTCFLAGS += -mcpu=405
  21. -$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405
  22. -$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
  23. +$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=440
  24. +$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=440
  25. $(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405
  26. $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
  27. $(obj)/treeboot-iss4xx.o: BOOTCFLAGS += -mcpu=405