qemu-coldfire.patch 963 B

123456789101112131415161718192021222324
  1. m68k: enabled software emulation of separate supervisor/user stack
  2. Recent Coldfires have separate supervisor and user stack pointers, but
  3. since older Coldfires didn't have that, the Linux kernel has a kind of
  4. emulation mechanism for those pointers.
  5. Apparently, according to the Kconfig.cpu file, the 5208 is supposed to
  6. support such separate pointers, but Qemu doesn't implement it. So we
  7. cheat a bit here and force the usage of emulated separate stack
  8. pointers.
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
  10. diff -Nur linux-3.14.26.orig/arch/m68k/Kconfig.cpu linux-3.14.26/arch/m68k/Kconfig.cpu
  11. --- linux-3.14.26.orig/arch/m68k/Kconfig.cpu 2014-12-06 17:56:06.000000000 -0600
  12. +++ linux-3.14.26/arch/m68k/Kconfig.cpu 2014-12-28 03:00:39.279037664 -0600
  13. @@ -146,6 +146,7 @@
  14. depends on !MMU
  15. select GENERIC_CLOCKEVENTS
  16. select HAVE_CACHE_SPLIT
  17. + select COLDFIRE_SW_A7
  18. help
  19. Freescale Coldfire 5207/5208 processor support.