qemu-coldfire.patch 951 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.16.orig/arch/m68k/Kconfig.cpu linux-3.16/arch/m68k/Kconfig.cpu
  11. --- linux-3.16.orig/arch/m68k/Kconfig.cpu 2014-08-04 00:25:02.000000000 +0200
  12. +++ linux-3.16/arch/m68k/Kconfig.cpu 2014-08-13 16:58:59.568332805 +0200
  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.