Skip to content
Snippets Groups Projects
  • Nadav Har'El's avatar
    ce17edb0
    Unfortunately, while in theory it should not be necessary to save · ce17edb0
    Nadav Har'El authored
    the FPU on a context switch caused by a function call (as opposed
    to a preemption during interrupt), in practice this makes the
    "sunflow" benchmark from SpecJVM fail, producing wrong results.
    
    This patch saves the FPU on any context switch and makes "sunflow"
    work correctly, at the price of slower context switches and an
    unsolved puzzle on why the heck this is needed in the first place :(
    ce17edb0
    History
    Unfortunately, while in theory it should not be necessary to save
    Nadav Har'El authored
    the FPU on a context switch caused by a function call (as opposed
    to a preemption during interrupt), in practice this makes the
    "sunflow" benchmark from SpecJVM fail, producing wrong results.
    
    This patch saves the FPU on any context switch and makes "sunflow"
    work correctly, at the price of slower context switches and an
    unsolved puzzle on why the heck this is needed in the first place :(