320-ppc4xx_optimization.patch 1.2 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. @@ -119,7 +119,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_E500) += -Wa,-me500
  13. cpu-as-$(CONFIG_E200) += -Wa,-me200
  14. --- a/arch/powerpc/boot/Makefile
  15. +++ b/arch/powerpc/boot/Makefile
  16. @@ -38,10 +38,10 @@ BOOTCFLAGS += -I$(obj) -I$(srctree)/$(ob
  17. DTC_FLAGS ?= -p 1024
  18. $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405
  19. -$(obj)/ebony.o: BOOTCFLAGS += -mcpu=405
  20. +$(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
  21. $(obj)/cuboot-hotfoot.o: BOOTCFLAGS += -mcpu=405
  22. -$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405
  23. -$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
  24. +$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=440
  25. +$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=440
  26. $(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405
  27. $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
  28. $(obj)/treeboot-iss4xx.o: BOOTCFLAGS += -mcpu=405