qemu-coldfire.patch 959 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.17.7.orig/arch/m68k/Kconfig.cpu linux-3.17.7/arch/m68k/Kconfig.cpu
  11. --- linux-3.17.7.orig/arch/m68k/Kconfig.cpu 2014-12-16 11:37:26.000000000 -0600
  12. +++ linux-3.17.7/arch/m68k/Kconfig.cpu 2014-12-27 14:12:19.291459730 -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.